@@ -39,4 +39,5 @@ SRC_URI = "\
file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
file://CVE-2026-91781.patch \
+ file://CVE-2026-90828.patch \
"
new file mode 100644
@@ -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))
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.47.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