# CVE-2026-125709: Libstdc++: overflow leaves streambuf in inconsistent state on i/o error.

- Severity: Medium 4.2 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L`
- 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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-11-10T11:23:22.074Z
- Modified: 2026-11-24T12:17:19.360Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A flaw was found in libstdc++. When a byte-by-byte write operation fails during file stream processing, the library may still append data into the internal memory buffer. An attacker capable of inducing repeated write failures in an affected service can trigger a buffer overflow, potentially resulting in a Denial of Service (DoS) or memory corruption.

(As written by CVE List.)

## Affected

- gcc-main: no versions given (not affected: from 16.2.1-3.3.hum1 before *)
- gcc: no versions given
- gcc-toolset-15-gcc: no versions given
- gcc-toolset-16-gcc: no versions given
- mingw-gcc: no versions given
- compat-gcc-295: no versions given
- compat-gcc-296: no versions given
- compat-gcc-32: no versions given
- compat-gcc-34: no versions given
- compat-gcc-44: no versions given
- gcc13: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2026:100125> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-125709> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2569390> (issue-tracking)

## Sources

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

---

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