diff mbox series

[wrynose,2/3] binutils: Patch for CVE-2026-90828

Message ID 20261118152058.24250-3-jaipaul.cheernam@est.tech
State New
Headers show
Series binutils CVE fixes for CVE-2026-91781, CVE-2026-91782 and CVE-2026-90828 | expand

Commit Message

Jaipaul Cheernam Nov. 18, 2026, 3:20 p.m. UTC
backport [3] fix mentioned in [2] for CVE [1]

References:
[1] https://nvd.nist.gov/vuln/detail/cve-2026-90828
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=34450
[3] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=123e4a5eab2db300b44288dcc1a29c903f9622f9

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 .../binutils/binutils-2.46.inc                |  1 +
 .../binutils/binutils/CVE-2026-90828.patch    | 29 +++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2026-90828.patch
diff mbox series

Patch

diff --git a/meta/recipes-devtools/binutils/binutils-2.46.inc b/meta/recipes-devtools/binutils/binutils-2.46.inc
index 10a15f564a..2f63c8d8a5 100644
--- a/meta/recipes-devtools/binutils/binutils-2.46.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.46.inc
@@ -44,4 +44,5 @@  SRC_URI = "\
      file://CVE-2026-18220.patch \
      file://CVE-2026-3441_CVE-2026-3442.patch \
      file://CVE-2026-91781.patch \
+     file://CVE-2026-90828.patch \
 "
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2026-90828.patch b/meta/recipes-devtools/binutils/binutils/CVE-2026-90828.patch
new file mode 100644
index 0000000000..a84e1fb847
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2026-90828.patch
@@ -0,0 +1,29 @@ 
+From a8d25ed8b1ac9d8e47fcce90cb901bacf863074c Mon Sep 17 00:00:00 2001
+From: Alan Modra <amodra@gmail.com>
+Date: Tue, 22 Sep 2026 21:27:03 +0930
+Subject: [PATCH] PR 34450 SEGV in elf_orphan_compatible
+
+Don't trust that SHF_LINK_ORDER set means linked_to is non-NULL.
+
+	* ldelf.c (elf_orphan_compatible): Sanity check linked_to before
+	dereferencing.
+
+CVE: CVE-2026-90828
+Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=123e4a5eab2db300b44288dcc1a29c903f9622f9]
+Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
+---
+ ld/ldelf.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/ld/ldelf.c b/ld/ldelf.c
+index 3d36e033b0c..50eb8d18799 100644
+--- a/ld/ldelf.c
++++ b/ld/ldelf.c
+@@ -2087,6 +2087,7 @@ elf_orphan_compatible (asection *in, asection *out)
+ 	  || ((elf_section_flags (in) & SHF_LINK_ORDER) != 0
+ 	      && (elf_section_flags (out) & SHF_LINK_ORDER) != 0
+ 	      && elf_linked_to_section (in) != NULL
++	      && elf_linked_to_section (out) != NULL
+ 	      && (elf_linked_to_section (in)->output_section
+ 		  != elf_linked_to_section (out)->output_section))
+ 	  || ((elf_section_flags (out) ^ elf_section_flags (in))