{"id":"CVE-2026-59144","published":"2026-07-21T19:04:20Z","modified":"2026-07-22T19:33:34Z","title":"Data::RingBuffer::Shared versions before 0.04 for Perl allow a stack buffer overflow via an unvalidated elem_size in…","vendor":"EGOR","product":"Data::RingBuffer::Shared","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00598,"percentile":0.42658,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://metacpan.org/release/EGOR/Data-RingBuffer-Shared-0.04/diff/EGOR/Data-RingBuffer-Shared-0.03#ring.h","tags":[]},{"url":"https://metacpan.org/release/EGOR/Data-RingBuffer-Shared-0.04/changes","tags":["release-notes"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":8.53},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"egor","affectedVersions":[{"vendor":"EGOR","product":"Data::RingBuffer::Shared","versions":["< 0.04"]}],"solutions":{"items":["Upgrade to Data::RingBuffer::Shared 0.04 or later, which pins elem_size to the fixed element size of the buffer's registered variant."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["For deployments that cannot upgrade to 0.04, place the backing file in a directory writable only by the owning user, so a local peer cannot tamper with the elem_size the read path trusts."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-22T19:33:30.894837Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-46365","exploited":false,"provenance":"source"}}