| Name | CVE-2026-125709 |
| 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. |
| Source | CVE (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 Bugs | 1155863 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| gcc-11 (PTS) | bookworm | 11.3.0-12 | vulnerable |
| sid | 11.5.0-15 | fixed |
| gcc-12 (PTS) | bookworm | 12.2.0-14+deb12u1 | vulnerable |
| trixie | 12.4.0-5 | vulnerable |
| sid | 12.5.0-13 | fixed |
| gcc-13 (PTS) | trixie | 13.3.0-16 | vulnerable |
| forky | 13.5.0-4 | vulnerable |
| sid | 13.5.0-5 | fixed |
| gcc-14 (PTS) | trixie | 14.2.0-19 | vulnerable |
| forky | 14.4.0-4 | vulnerable |
| sid | 14.4.0-5 | vulnerable |
| gcc-15 (PTS) | forky | 15.3.0-5 | vulnerable |
| sid | 15.3.0-7 | vulnerable |
| gcc-16 (PTS) | forky | 16.2.0-5 | fixed |
| sid | 16.2.0-6 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| gcc-11 | source | (unstable) | 11.5.0-15 | | | |
| gcc-12 | source | (unstable) | 12.5.0-13 | | | |
| gcc-13 | source | (unstable) | 13.5.0-5 | | | |
| gcc-14 | source | (unstable) | (unfixed) | | | |
| gcc-15 | source | (unstable) | (unfixed) | | | |
| gcc-16 | source | (unstable) | 16.2.0-5 | | | 1155863 |
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)