# CVE-2026-59144: Data::RingBuffer::Shared versions before 0.04 for Perl allow a stack buffer overflow via an unvalidated elem_size in ring_read_seq

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-07-21T19:04:20.191Z
- Modified: 2026-10-24T19:10:00.127Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Data-RingBuffer-Shared: before 0.04

## References

- <https://metacpan.org/release/EGOR/Data-RingBuffer-Shared-0.04/diff/EGOR/Data-RingBuffer-Shared-0.03#ring.h>
- <https://metacpan.org/release/EGOR/Data-RingBuffer-Shared-0.04/changes> (release-notes)

## Sources

- CVE List: [CVE-2026-59144](https://www.cve.org/CVERecord?id=CVE-2026-59144), CVE Terms of Use, modified 2026-07-22
- NVD: [CVE-2026-59144](https://nvd.nist.gov/vuln/detail/CVE-2026-59144), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-59144 · Whole record: https://cve.day/CVE-2026-59144.json · Rebuilt by cve.day 2026-11-25T22:59:29.395Z
