diff --git a/backport-CVE-2025-3198.patch b/backport-CVE-2025-3198.patch new file mode 100644 index 0000000000000000000000000000000000000000..1125eb984a98e2576d647e5f93938c30ac64e847 --- /dev/null +++ b/backport-CVE-2025-3198.patch @@ -0,0 +1,26 @@ +From ba6ad3a18cb26b79e0e3b84c39f707535bbc344d Mon Sep 17 00:00:00 2001 +From: Alan Modra +Date: Wed, 19 Feb 2025 07:58:54 +1030 +Subject: [PATCH] PR32716, objdump -i memory leak + + PR binutils/32716 + * bucomm.c (display_info): Free arg.info. +--- + binutils/bucomm.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/binutils/bucomm.c b/binutils/bucomm.c +index ccf54099154..d4554737db1 100644 +--- a/binutils/bucomm.c ++++ b/binutils/bucomm.c +@@ -435,6 +435,7 @@ display_info (void) + if (!arg.error) + display_target_tables (&arg); + ++ free (arg.info); + return arg.error; + } + +-- +2.43.5 + diff --git a/binutils.spec b/binutils.spec index ccea3cd7cf0210c7bcecda7f62f52413a764a0b2..97022fb4565d6983b3af953d99d5d2b9a3934ae8 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,7 +1,7 @@ Summary: Binary utilities Name: binutils Version: 2.37 -Release: 27 +Release: 28 License: GPLv3+ URL: https://sourceware.org/binutils @@ -83,6 +83,7 @@ Patch57: backport-CVE-2022-4285.patch Patch58: backport-CVE-2022-38533.patch Patch59: backport-libctf-fix-ref-leak-of-names-of-newly-inserted-non-r.patch Patch60: backport-PR29171-invalid-read-causing-SIGSEGV.patch +Patch61: backport-CVE-2025-3198.patch %ifarch loongarch64 # LoongArch-related patches start with Patch101 @@ -429,6 +430,9 @@ fi %{_infodir}/bfd*info* %changelog +* Thu May 22 2025 Linux_zhang - 2.37-28 +- Fix CVE-2025-3198: Memory leak issue in objdump + * Fri Feb 28 2025 huyubiao - 2.37-27 - DESC:back port PR29171 to fix invalid read causing SIGSEGV