CVE-2026-125709
4.2medium
Libstdc++: overflow leaves streambuf in inconsistent state on i/o error.
- Severity
- 4.2medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gcc-main | Not specified Not affected: from 16.2.1-3.3.hum1 before * | CVE List |
| gcc | Not specified | CVE List |
| gcc-toolset-15-gcc | Not specified | CVE List |
| gcc-toolset-16-gcc | Not specified | CVE List |
| mingw-gcc | Not specified | CVE List |
| compat-gcc-295 | Not specified | CVE List |
| compat-gcc-296 | Not specified | CVE List |
| compat-gcc-32 | Not specified | CVE List |
| compat-gcc-34 | Not specified | CVE List |
| compat-gcc-44 | Not specified | CVE List |
| gcc13 | Not specified | CVE List |
| openshift/ose-rhel-coreos-8 | Not specified | CVE List |
| openshift/ose-rhel-coreos-9 | Not specified | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-125709 changed 2026-11-24 | CVE Terms of Use |
| NVD | CVE-2026-125709 changed 2026-11-24 | Public domain |