CVE-2026-64613

Data::Buffer::Shared versions before 0.05 for Perl create a world-readable mmap backing file and open it without O_NOFOLLOW. The segment is created in buf_generic.h with open(path, O_RDWR|O_CREAT|O_EXCL, 0666). O_EXCL blocks a pre-seeded file on create, but the mode is 0666, so under the default umask 022 the file is created mode 0644 (world-readable), and O_NOFOLLOW is absent, so a symlink planted at the path is followed when the segment is attached. A "Shared" segment naturally lives in a shared directory such as /tmp or /dev/shm, where any local user can read the IPC payloads stored in the world-readable segment, and a pre-planted symlink at the path redirects the open to another file.
Configurations

No configuration.

History

24 Oct 2026, 19:10

Type Values Removed Values Added
Summary
  • (es) Las versiones de Data::Buffer::Shared anteriores a la 0.05 para Perl crean un archivo de respaldo mmap legible por cualquier usuario y lo abren sin O_NOFOLLOW. El segmento se crea en buf_generic.h con open(path, O_RDWR|O_CREAT|O_EXCL, 0666). O_EXCL bloquea un archivo preexistente al crearlo, pero el modo es 0666, así que bajo la umask predeterminada 022 el archivo se crea con el modo 0644 (legible por cualquier usuario), y O_NOFOLLOW está ausente, por lo que un enlace simbólico colocado en la ruta es seguido cuando el segmento se adjunta. Un segmento ’Shared’ reside naturalmente en un directorio compartido como /tmp o /dev/shm, donde cualquier usuario local puede leer las cargas útiles IPC almacenadas en el segmento legible por cualquier usuario, y un enlace simbólico preestablecido en la ruta redirige la apertura a otro archivo.

Information

Published : 2026-07-21 20:17

Updated : 2026-10-24 19:10


NVD link : CVE-2026-64613

Mitre link : CVE-2026-64613

CVE.ORG link : CVE-2026-64613


JSON object : View

Products Affected

No product.

CWE
CWE-59

Improper Link Resolution Before File Access ('Link Following')

CWE-732

Incorrect Permission Assignment for Critical Resource