binutils: Fix CVE-2025-69652, CVE-2025-69649 and CVE-2026-4647
PATCH 1/1 binutils: Fix CVE-2025-69652, CVE-2025-69649 and CVE-2026-4647
From: Shaik Moin <[email protected]>
Backport fix for CVE-2025-69652, CVE-2025-69649 and CVE-2026-4647
Patches are refreshed based on code base.
--- .../binutils/binutils/CVE-2025-69649.patch | 42 ++++ .../binutils/binutils/CVE-2025-69652.patch | 45 ++++ .../binutils/binutils/CVE-2026-4647.patch | 233 ++++++++++++++++++ .../binutils/binutils_%.bbappend | 6 + 4 files changed, 326 insertions(+) create mode 100644 meta-core/recipes-devtools/binutils/binutils/CVE-2025-69649.patch create mode 100644 meta-core/recipes-devtools/binutils/binutils/CVE-2025-69652.patch create mode 100644 meta-core/recipes-devtools/binutils/binutils/CVE-2026-4647.patch create mode 100644 meta-core/recipes-devtools/binutils/binutils_%.bbappend
meta-core/recipes-devtools/binutils/binutils/CVE-2025-69649.patch new file +42 -0
@@ -0,0 +1,42 @@ +From 48f8779129c6dcda57a003e81ddabf70451c78bd Mon Sep 17 00:00:00 2001 +From: Shaik Moin <[email protected]> +Date: Wed, 6 May 2026 16:20:04 +0530 +Subject: [PATCH] binutils: Fix CVE-2025-69649 + +PR 33697, fuzzer segfault + +PR 33697 +* readelf.c (process_relocs): Don't segfault on no sections. + +CVE: CVE-2025-69649 + +Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=66a3492ce68e1ae45b2489bd9a815c39ea5d7f66] + +Patch is refreshed based on code base. + +Signed-off-by: Alan Modra <[email protected]> +Signed-off-by: Shaik Moin <[email protected]> +--- + binutils/readelf.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/binutils/readelf.c b/binutils/readelf.c +index 137a505b..8a948703 100644 +--- a/binutils/readelf.c ++++ b/binutils/readelf.c +@@ -8227,9 +8227,9 @@ process_relocs (Filedata * filedata) + unsigned long i; + bool found = false; + +- for (i = 0, section = filedata->section_headers; +- i < filedata->file_header.e_shnum; +- i++, section++) ++ section = filedata->section_headers; ++ if (section != NULL) ++ for (i = 0; i < filedata->file_header.e_shnum; i++, section++) + { + if ( section->sh_type != SHT_RELA + && section->sh_type != SHT_REL +-- +2.34.1 +
meta-core/recipes-devtools/binutils/binutils/CVE-2025-69652.patch new file +45 -0
45 lines not on this page · raw message
meta-core/recipes-devtools/binutils/binutils/CVE-2026-4647.patch new file +233 -0
233 lines not on this page · raw message
meta-core/recipes-devtools/binutils/binutils_%.bbappend new file +6 -0
@@ -0,0 +1,6 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://CVE-2025-69649.patch \ + file://CVE-2025-69652.patch \ + file://CVE-2026-4647.patch \ +"
Signature · 1 line
2.34.1
Hi James,
Thank you for this patch.
Here is a PR for the binutils patches: https://github.com/garmin/meta-lts-collab/pull/108
CI is passing and the patches mostly look good. Two issues I see:
1. Can you please use ${BPN} instead of ${PN} in FILESEXTRAPATHS?
2. I'm a little uncomfortable with the signed-off-by lines in the patch file:
Quoted 2 lines
Signed-off-by Shaik Moin <careers.myinfo@...>
I would prefer for this address to match the other kpit addresses in your other submissions instead of the careers.myinfo gmail address. Can you please submit a v2 patch with either Shaik's email corrected or with you personally signing off these patches?
Thanks,
Colin