{"id":"CVE-2026-59144","aliases":["CVE-2026-59144"],"related":[],"kind":"vulnerability","state":"published","title":"Data::RingBuffer::Shared versions before 0.04 for Perl allow a stack buffer overflow via an unvalidated elem_size in ring_read_seq","summary":"Data::RingBuffer::Shared versions before 0.04 for Perl allow a stack buffer overflow via an unvalidated elem_size in ring_read_seq.\n\nThe attach-time validator ring_validate_header checks the capacity-overflow and total_size consistency of the header but never caps elem_size against the destination size. ring_read_seq does memcpy(out, ring_slot(h, seq), elem_size) with elem_size read raw from the mmap'd segment, copying into a fixed 8-byte destination scalar. An elem_size larger than 8 bytes writes past the destination.\n\nA local peer that can write the backing file can leave the header valid while setting a large elem_size, so the next read copies a file-controlled length into the fixed 8-byte stack buffer, corrupting adjacent stack frames.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Data::RingBuffer::Shared versions before 0.04 for Perl allow a stack buffer overflow via an unvalidated elem_size in ring_read_seq.\n\nThe attach-time validator ring_validate_header checks the capacity-overflow and total_size consistency of the header but never caps elem_size against the destination size. ring_read_seq does memcpy(out, ring_slot(h, seq), elem_size) with elem_size read raw from the mmap'd segment, copying into a fixed 8-byte destination scalar. An elem_size larger than 8 bytes writes past the destination.\n\nA local peer that can write the backing file can leave the header valid while setting a large elem_size, so the next read copies a file-controlled length into the fixed 8-byte stack buffer, corrupting adjacent stack frames.","source":"cvelist"},{"lang":"es","text":"Las versiones de Data::RingBuffer::Shared anteriores a la 0.04 para Perl permiten un desbordamiento de búfer de pila a través de un elem_size no validado en ring_read_seq.\n\nEl validador en tiempo de adjunción ring_validate_header verifica la consistencia de desbordamiento de capacidad y total_size del encabezado, pero nunca limita elem_size con respecto al tamaño de destino. ring_read_seq realiza memcpy(out, ring_slot(h, seq), elem_size) con elem_size leído directamente del segmento mapeado en memoria, copiando en un escalar de destino fijo de 8 bytes. Un elem_size mayor de 8 bytes escribe más allá del destino.\n\nUn par local que puede escribir el archivo de respaldo puede dejar el encabezado válido mientras establece un elem_size grande, de modo que la siguiente lectura copia una longitud controlada por el archivo en el búfer de pila fijo de 8 bytes, corrompiendo los marcos de pila adyacentes.","source":"nvd"}],"published":"2026-07-21T19:04:20.191Z","modified":"2026-10-24T19:10:00.127Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"0.04","status":"affected"}],"vendor":"EGOR","product":"Data::RingBuffer::Shared","package":"Data-RingBuffer-Shared","repo":"https://github.com/vividsnow/perl5-data-ringbuffer-shared","source":"cvelist"}],"references":[{"url":"https://metacpan.org/release/EGOR/Data-RingBuffer-Shared-0.04/diff/EGOR/Data-RingBuffer-Shared-0.03#ring.h","tags":[],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/EGOR/Data-RingBuffer-Shared-0.04/changes","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-07-22T19:33:30.894Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59144","url":"https://www.cve.org/CVERecord?id=CVE-2026-59144","licence":"CVE Terms of Use","modified":"2026-07-22T19:33:34.869Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59144","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59144","licence":"Public domain","modified":"2026-10-24T19:10:00.127Z"}],"updatedAt":"2026-11-25T22:59:29.395Z","epss":{"score":0.00459,"percentile":0.41531,"date":"2026-12-01T12:00:22.000Z"}}