gcc: Fix for CVE-2026-102010
PATCH 1/1 gcc: Fix for CVE-2026-102010
From: Hemanth Kumar M D <[email protected]>
PR 127656 use-after-free in libstdc++ pbds binary heap erase_if
After reallocating the storage the m_a_entries pointer is left dangling and the new storage is leaked. Update m_a_entries after reallocation
References:
https://nvd.nist.gov/vuln/detail/CVE-2026-102010
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127656
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=aaa8351f4d2e636f9680a1f0a8ebc2f0a60611e6
--- meta/recipes-devtools/gcc/gcc-16.2.inc | 1 + .../gcc/gcc/0026-CVE-2026-102010.patch | 71 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc/0026-CVE-2026-102010.patch
meta/recipes-devtools/gcc/gcc-16.2.inc +1 -0
@@ -74,6 +74,7 @@ SRC_URI = "${BASEURI} \ file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \ 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 \ " UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources"
meta/recipes-devtools/gcc/gcc/0026-CVE-2026-102010.patch new file +71 -0
71 lines not on this page · raw message
Signature · 1 line
2.49.0
Quoted 7 lines · Hemanth Kumar M D via lists.openembedded.org
From: Hemanth Kumar M D <[email protected]>
PR 127656 use-after-free in libstdc++ pbds binary heap
erase_ifAfter reallocating the storage the
m_a_entriespointer is left dangling and the new storage is leaked. Updatem_a_entriesafter reallocation
Quoted 7 lines
References:
https://nvd.nist.gov/vuln/detail/CVE-2026-102010
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127656
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=aaa8351f4d2e636f9680a1f0a8ebc2f0a60611e6Signed-off-by Hemanth Kumar M D <[email protected]>---
I do note this is triggering some warning on the autobuilder, but I don't understand what might be the link with this patch. It might be a previously existing issue.
https://autobuilder.yoctoproject.org/valkyrie/#/builders/19/builds/4789
Thanks,
Mathieu
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com