gcc: Fix for CVE-2026-125709
PATCH v2 1/1 gcc: Fix for CVE-2026-125709
From: Harish Sadineni <[email protected]>
libstdc++: Fix buffer overflows in basic_filebuf::overflow [PR118099]
If we fail to write the content of the buffer after inserting the overflow character into the end of it, then remove that overflow character before propagating the error back to the caller. Without this, the caller is left with pptr set past epptr, and successive calls to overflow will write further past the end of the managed buffer with each failure.
References:
https://nvd.nist.gov/vuln/detail/cve-2026-125709
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118099
https://bugzilla.redhat.com/show_bug.cgi?id=2569390
Signed-off-by Harish Sadineni <[email protected]>
--- meta/recipes-devtools/gcc/gcc-16.2.inc | 1 + .../gcc/gcc/0027-CVE-2026-125709.patch | 378 ++++++++++++++++++ 2 files changed, 379 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc/0027-CVE-2026-125709.patch
meta/recipes-devtools/gcc/gcc-16.2.inc +1 -0
@@ -75,6 +75,7 @@ SRC_URI = "${BASEURI} \ file://0001-mapper-localhost-might-not-be-known.patch \ file://0001-Fix-check-for-working-assembler-gdwarf-4-option.patch \ file://0026-CVE-2026-102010.patch \ + file://0027-CVE-2026-125709.patch \ " UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources"
meta/recipes-devtools/gcc/gcc/0027-CVE-2026-125709.patch new file +378 -0
378 lines not on this page · raw message
Signature · 1 line
2.49.0