summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYash Shinde <Yash.Shinde@windriver.com>2025-12-19 03:08:10 -0800
committerSteve Sakoman <steve@sakoman.com>2025-12-31 07:24:54 -0800
commitdf858d86edcc68d5380c3b4d4779f234fb2a03aa (patch)
treebf40101b99ed3c92f7e14b4003d9133a356f253c
parentc1f7fcc84f382a270d4838b002ed905a987b7db6 (diff)
downloadpoky-df858d86edcc68d5380c3b4d4779f234fb2a03aa.tar.gz
binutils: fix CVE-2025-11840
CVE-2025-11840 PR 33455 [BUG] A SEGV in vfinfo at ldmisc.c:527 A reloc howto set up with EMPTY_HOWTO has a NULL name. More than one place emitting diagnostics assumes a reloc howto won't have a NULL name. https://sourceware.org/bugzilla/show_bug.cgi?id=33455 Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=f6b0f53a36820da91eadfa9f466c22f92e4256e0] (From OE-Core rev: 85e62aad46eb096cf92907288a3eb1b6f76072c4) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.38.inc1
-rw-r--r--meta/recipes-devtools/binutils/binutils/0050-CVE-2025-11840.patch37
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.38.inc b/meta/recipes-devtools/binutils/binutils-2.38.inc
index 426c00ce3f..d268880409 100644
--- a/meta/recipes-devtools/binutils/binutils-2.38.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.38.inc
@@ -88,5 +88,6 @@ SRC_URI = "\
88 file://CVE-2025-11413.patch \ 88 file://CVE-2025-11413.patch \
89 file://0048-CVE-2025-11494.patch \ 89 file://0048-CVE-2025-11494.patch \
90 file://0049-CVE-2025-11839.patch \ 90 file://0049-CVE-2025-11839.patch \
91 file://0050-CVE-2025-11840.patch \
91" 92"
92S = "${WORKDIR}/git" 93S = "${WORKDIR}/git"
diff --git a/meta/recipes-devtools/binutils/binutils/0050-CVE-2025-11840.patch b/meta/recipes-devtools/binutils/binutils/0050-CVE-2025-11840.patch
new file mode 100644
index 0000000000..3fb4db880e
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/0050-CVE-2025-11840.patch
@@ -0,0 +1,37 @@
1From f6b0f53a36820da91eadfa9f466c22f92e4256e0 Mon Sep 17 00:00:00 2001
2From: Alan Modra <amodra@gmail.com>
3Date: Mon, 3 Nov 2025 09:03:37 +1030
4Subject: [PATCH] PR 33455 SEGV in vfinfo at ldmisc.c:527
5
6A reloc howto set up with EMPTY_HOWTO has a NULL name. More than one
7place emitting diagnostics assumes a reloc howto won't have a NULL
8name.
9
10 PR 33455
11 * coffcode.h (coff_slurp_reloc_table): Don't allow a howto with
12 a NULL name.
13---
14 bfd/coffcode.h | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=f6b0f53a36820da91eadfa9f466c22f92e4256e0]
18CVE: CVE-2025-11840
19
20Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
21
22diff --git a/bfd/coffcode.h b/bfd/coffcode.h
23index 1e5acc0032c..ce1e39131b4 100644
24--- a/bfd/coffcode.h
25+++ b/bfd/coffcode.h
26@@ -5345,7 +5345,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_ptr asect, asymbol ** symbols)
27 RTYPE2HOWTO (cache_ptr, &dst);
28 #endif /* RELOC_PROCESSING */
29
30- if (cache_ptr->howto == NULL)
31+ if (cache_ptr->howto == NULL || cache_ptr->howto->name == NULL)
32 {
33 _bfd_error_handler
34 /* xgettext:c-format */
35--
362.43.7
37