CVE-2026-59144
Full vulnerability record from the local CVENow database.
Description
Data::RingBuffer::Shared versions before 0.04 for Perl allow a stack buffer overflow via an unvalidated elem_size in ring_read_seq. The 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. A 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.
View original CVE JSON
{
"id": "CVE-2026-59144",
"sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"published": "2026-07-21T20:17:03.193",
"lastModified": "2026-10-24T19:10:00.127",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "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."
}
],
"affected": [
{
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"affectedData": [
{
"vendor": "EGOR",
"product": "Data::RingBuffer::Shared",
"defaultStatus": "unaffected",
"collectionURL": "https://cpan.org/modules",
"packageName": "Data-RingBuffer-Shared",
"programFiles": [
"ring.h"
],
"programRoutines": [
{
"name": "ring_read_seq"
}
],
"repo": "https://github.com/vividsnow/perl5-data-ringbuffer-shared",
"versions": [
{
"version": "0",
"lessThan": "0.04",
"versionType": "custom",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 3.9,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-22T19:33:30.894837Z",
"id": "CVE-2026-59144",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-121"
}
]
}
],
"references": [
{
"url": "https://metacpan.org/release/EGOR/Data-RingBuffer-Shared-0.04/changes",
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
},
{
"url": "https://metacpan.org/release/EGOR/Data-RingBuffer-Shared-0.04/diff/EGOR/Data-RingBuffer-Shared-0.03#ring.h",
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
}
]
}