@@ -85,5 +85,7 @@ SRC_URI = "\
file://CVE-2026-3441_CVE-2026-3442.patch \
file://CVE-2026-4647.patch \
file://CVE-2026-91781.patch \
+ file://CVE-2026-90828-pre.patch \
+ file://CVE-2026-90828.patch \
"
S = "${WORKDIR}/git"
new file mode 100644
@@ -0,0 +1,30 @@
+From b7c4d0bb673d8d53367e085999f5303d63025e8b Mon Sep 17 00:00:00 2001
+From: Nick Clifton <nickc@redhat.com>
+Date: Thu, 6 Feb 2025 09:55:03 +0000
+Subject: [PATCH] Fix illegal memory access when linking a corrupt input file.
+
+PR 32647
+
+CVE: CVE-2026-90828
+Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=6be6e5b8ee95eda6f12f5bb0fbc2a17a42265ffb]
+
+Note: NVD didn't mark this as prerequisite but while cherry-picking the fix to resolve this commit is needed
+my analysis this check is needed
+
+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 d8c0817b..314e72a9 100644
+--- a/ld/ldelf.c
++++ b/ld/ldelf.c
+@@ -2089,6 +2089,7 @@ elf_orphan_compatible (asection *in, asection *out)
+ && (elf_next_in_group (out) != NULL
+ || ((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 (in)->output_section
+ != elf_linked_to_section (out)->output_section))
+ || ((elf_section_flags (out) ^ elf_section_flags (in))
new file mode 100644
@@ -0,0 +1,29 @@
+From f6c82e420be28ae30caa49bfb095b576924f1f95 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 314e72a9..7529cf47 100644
+--- a/ld/ldelf.c
++++ b/ld/ldelf.c
+@@ -2090,6 +2090,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 fix mentioned in [2] for CVE [1] Actual fix need a prerequisite commit [4] CVE-2026-90828-pre.patch 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 [4] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=6be6e5b8ee95eda6f12f5bb0fbc2a17a42265ffb Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech> --- .../binutils/binutils-2.42.inc | 2 ++ .../binutils/CVE-2026-90828-pre.patch | 30 +++++++++++++++++++ .../binutils/binutils/CVE-2026-90828.patch | 29 ++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2026-90828-pre.patch create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2026-90828.patch