CVE-2026-125709

NameCVE-2026-125709
DescriptionA 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1155863

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
gcc-11 (PTS)bookworm11.3.0-12vulnerable
sid11.5.0-15fixed
gcc-12 (PTS)bookworm12.2.0-14+deb12u1vulnerable
trixie12.4.0-5vulnerable
sid12.5.0-13fixed
gcc-13 (PTS)trixie13.3.0-16vulnerable
forky13.5.0-4vulnerable
sid13.5.0-5fixed
gcc-14 (PTS)trixie14.2.0-19vulnerable
forky14.4.0-4vulnerable
sid14.4.0-5vulnerable
gcc-15 (PTS)forky15.3.0-5vulnerable
sid15.3.0-7vulnerable
gcc-16 (PTS)forky16.2.0-5fixed
sid16.2.0-6fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gcc-11source(unstable)11.5.0-15
gcc-12source(unstable)12.5.0-13
gcc-13source(unstable)13.5.0-5
gcc-14source(unstable)(unfixed)
gcc-15source(unstable)(unfixed)
gcc-16source(unstable)16.2.0-51155863

Notes

[trixie] - gcc-14 <no-dsa> (Minor issue)
[trixie] - gcc-13 <no-dsa> (Minor issue)
[trixie] - gcc-12 <no-dsa> (Minor issue)
[bookworm] - gcc-12 <postponed> (Minor issue, hard to trigger)
[bookworm] - gcc-11 <postponed> (Minor issue, hard to trigger)
https://bugzilla.redhat.com/show_bug.cgi?id=2569390
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118099#c4
https://gcc.gnu.org/cgit/gcc/commit/?id=2d296e9f024edbb49cad1f3ebb5ae34c71ea5f7a (master)
https://gcc.gnu.org/cgit/gcc/commit/?id=43e4d697586364decbad7f67a204189afef6e765 (master)
https://gcc.gnu.org/cgit/gcc/commit/?id=f46b50adcf752de0e1e0e24e17f42a5075770f48 (master)
https://gcc.gnu.org/cgit/gcc/commit/?id=68b1b9056c70acb31f2964963b51c480ff820602 (releases/gcc-16)

Search for package or bug name: Reporting problems