Skip to content

Commit 602d1ca

Browse files
hsadinenrpurdie
authored andcommitted
binutils: Fix for CVE-2025-3198
Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=ba6ad3a18cb26b79e0e3b84c39f707535bbc344d] CVE: CVE-2025-3198 Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
1 parent 082c560 commit 602d1ca

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

meta/recipes-devtools/binutils/binutils-2.44.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ SRC_URI = "\
4242
file://0017-CVE-2025-1181-2.patch \
4343
file://0018-CVE-2025-5245.patch \
4444
file://0019-CVE-2025-5244.patch \
45+
file://0019-CVE-2025-3198.patch \
4546
"
4647
S = "${WORKDIR}/git"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+

0 commit comments

Comments
 (0)