diff options
Diffstat (limited to 'meta/recipes-devtools/binutils')
3 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.44.inc b/meta/recipes-devtools/binutils/binutils-2.44.inc index c3a597cd7b..90546a0cfa 100644 --- a/meta/recipes-devtools/binutils/binutils-2.44.inc +++ b/meta/recipes-devtools/binutils/binutils-2.44.inc | |||
@@ -41,5 +41,7 @@ SRC_URI = "\ | |||
41 | file://0016-CVE-2025-1181-1.patch \ | 41 | file://0016-CVE-2025-1181-1.patch \ |
42 | file://0017-CVE-2025-1181-2.patch \ | 42 | file://0017-CVE-2025-1181-2.patch \ |
43 | file://0018-CVE-2025-5245.patch \ | 43 | file://0018-CVE-2025-5245.patch \ |
44 | file://0019-CVE-2025-5244.patch \ | ||
45 | file://0019-CVE-2025-3198.patch \ | ||
44 | " | 46 | " |
45 | S = "${WORKDIR}/git" | 47 | S = "${WORKDIR}/git" |
diff --git a/meta/recipes-devtools/binutils/binutils/0019-CVE-2025-3198.patch b/meta/recipes-devtools/binutils/binutils/0019-CVE-2025-3198.patch new file mode 100644 index 0000000000..49d7c94b9f --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/0019-CVE-2025-3198.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From ba6ad3a18cb26b79e0e3b84c39f707535bbc344d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alan Modra <amodra@gmail.com> | ||
3 | Date: Wed, 19 Feb 2025 07:58:54 +1030 | ||
4 | Subject: [PATCH] PR32716, objdump -i memory leak | ||
5 | |||
6 | PR binutils/32716 | ||
7 | * bucomm.c (display_info): Free arg.info. | ||
8 | |||
9 | Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=ba6ad3a18cb26b79e0e3b84c39f707535bbc344d] | ||
10 | CVE: CVE-2025-3198 | ||
11 | |||
12 | Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> | ||
13 | --- | ||
14 | binutils/bucomm.c | 1 + | ||
15 | 1 file changed, 1 insertion(+) | ||
16 | |||
17 | diff --git a/binutils/bucomm.c b/binutils/bucomm.c | ||
18 | index ccf54099154..d4554737db1 100644 | ||
19 | --- a/binutils/bucomm.c | ||
20 | +++ b/binutils/bucomm.c | ||
21 | @@ -435,6 +435,7 @@ display_info (void) | ||
22 | if (!arg.error) | ||
23 | display_target_tables (&arg); | ||
24 | |||
25 | + free (arg.info); | ||
26 | return arg.error; | ||
27 | } | ||
28 | |||
diff --git a/meta/recipes-devtools/binutils/binutils/0019-CVE-2025-5244.patch b/meta/recipes-devtools/binutils/binutils/0019-CVE-2025-5244.patch new file mode 100644 index 0000000000..e8855a4b4b --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/0019-CVE-2025-5244.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From: Alan Modra <amodra@gmail.com> | ||
2 | Date: Thu, 10 Apr 2025 19:41:49 +0930 | ||
3 | |||
4 | Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=d1458933830456e54223d9fc61f0d9b3a19256f5] | ||
5 | CVE: CVE-2025-5244 | ||
6 | |||
7 | PR32858 ld segfault on fuzzed object | ||
8 | We missed one place where it is necessary to check for empty groups. | ||
9 | |||
10 | Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> | ||
11 | |||
12 | diff --git a/bfd/elflink.c b/bfd/elflink.c | ||
13 | index a76e8e38da7..549b7b7dd92 100644 | ||
14 | --- a/bfd/elflink.c | ||
15 | +++ b/bfd/elflink.c | ||
16 | @@ -14408,7 +14408,8 @@ elf_gc_sweep (bfd *abfd, struct bfd_link_info *info) | ||
17 | if (o->flags & SEC_GROUP) | ||
18 | { | ||
19 | asection *first = elf_next_in_group (o); | ||
20 | - o->gc_mark = first->gc_mark; | ||
21 | + if (first != NULL) | ||
22 | + o->gc_mark = first->gc_mark; | ||
23 | } | ||
24 | |||
25 | if (o->gc_mark) | ||