From: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
To: openembedded-core@lists.openembedded.org
Subject: [scarthgap][PATCH 2/3] binutils: Patch for CVE-2026-90828
Date: Wed, 18 Nov 2026 17:21:52 +0100 [thread overview]
Message-ID: <20261118162153.25025-3-jaipaul.cheernam@est.tech> (raw)
In-Reply-To: <20261118162153.25025-1-jaipaul.cheernam@est.tech>
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
diff --git a/meta/recipes-devtools/binutils/binutils-2.42.inc b/meta/recipes-devtools/binutils/binutils-2.42.inc
index 7e91b7fe57..93576817f5 100644
--- a/meta/recipes-devtools/binutils/binutils-2.42.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.42.inc
@@ -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"
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2026-90828-pre.patch b/meta/recipes-devtools/binutils/binutils/CVE-2026-90828-pre.patch
new file mode 100644
index 0000000000..afccce2b24
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2026-90828-pre.patch
@@ -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))
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..96127003e8
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2026-90828.patch
@@ -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))
next prev parent reply other threads:[~2026-11-18 16:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 16:21 [scarthgap][PATCH 0/3] binutils CVE fixes for CVE-2026-91781, CVE-2026-91782 and CVE-2026-90828 for scarthgap Jaipaul Cheernam
2026-11-18 16:21 ` [scarthgap][PATCH 1/3] binutils: Patch CVE-2026-91781 Jaipaul Cheernam
2026-11-18 16:21 ` Jaipaul Cheernam [this message]
2026-11-18 16:21 ` [scarthgap][PATCH 3/3] binutils: Patch for CVE-2026-91782 Jaipaul Cheernam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261118162153.25025-3-jaipaul.cheernam@est.tech \
--to=jaipaul.cheernam@est.tech \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox