diff options
author | Harish Sadineni <Harish.Sadineni@windriver.com> | 2025-05-28 07:15:47 -0700 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-06-04 09:06:31 -0700 |
commit | 94dea33c75f818c1424dc24366a3e3f368a208fe (patch) | |
tree | 68ed65d34523c20232efa501bf57d96dd80e4f4b | |
parent | 3810d71ad8ee9dee94903901c87cd0b642425cd1 (diff) | |
download | poky-94dea33c75f818c1424dc24366a3e3f368a208fe.tar.gz |
binutils: Fix CVE-2025-1182
Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=b425859021d17adf62f06fb904797cf8642986ad]
CVE: CVE-2025-1182
(From OE-Core rev: bbfdd5c44a5629b9158b418b5335ec4f1567b3f9)
Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0040-CVE-2025-1182.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0040-CVE-2025-1182.patch b/meta/recipes-devtools/binutils/binutils/0040-CVE-2025-1182.patch new file mode 100644 index 0000000000..682f633927 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/0040-CVE-2025-1182.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From b425859021d17adf62f06fb904797cf8642986ad Mon Sep 17 00:00:00 2001 | ||
2 | From: Nick Clifton <nickc@redhat.com> | ||
3 | Date: Wed, 5 Feb 2025 16:27:38 +0000 | ||
4 | Subject: [PATCH] Fix another illegal memory access triggered by corrupt ELF | ||
5 | input files. | ||
6 | |||
7 | PR 32644 | ||
8 | |||
9 | Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=b425859021d17adf62f06fb904797cf8642986ad] | ||
10 | |||
11 | CVE: CVE-2025-1182 | ||
12 | |||
13 | Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> | ||
14 | --- | ||
15 | bfd/elflink.c | 4 ++++ | ||
16 | 1 file changed, 4 insertions(+) | ||
17 | |||
18 | diff --git a/bfd/elflink.c b/bfd/elflink.c | ||
19 | --- a/bfd/elflink.c | ||
20 | +++ b/bfd/elflink.c | ||
21 | @@ -14711,6 +14711,10 @@ | ||
22 | } | ||
23 | else | ||
24 | { | ||
25 | + if (r_symndx >= rcookie->locsymcount) | ||
26 | + /* This can happen with corrupt input. */ | ||
27 | + return false; | ||
28 | + | ||
29 | /* It's not a relocation against a global symbol, | ||
30 | but it could be a relocation against a local | ||
31 | symbol for a discarded section. */ | ||