CVE-2026-125709
JSON

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 packageVersionsReported by
gcc-mainNot specified
Not affected: from 16.2.1-3.3.hum1 before *
CVE List
gccNot specifiedCVE List
gcc-toolset-15-gccNot specifiedCVE List
gcc-toolset-16-gccNot specifiedCVE List
mingw-gccNot specifiedCVE List
compat-gcc-295Not specifiedCVE List
compat-gcc-296Not specifiedCVE List
compat-gcc-32Not specifiedCVE List
compat-gcc-34Not specifiedCVE List
compat-gcc-44Not specifiedCVE List
gcc13Not specifiedCVE List
openshift/ose-rhel-coreos-8Not specifiedCVE List

Classification

CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-125709 changed 2026-11-24CVE Terms of Use
NVDCVE-2026-125709 changed 2026-11-24Public domain