diff --git a/binutils-memory-access-when-parsing-an-elf-file.patch b/binutils-memory-access-when-parsing-an-elf-file.patch new file mode 100644 index 0000000000000000000000000000000000000000..089bc54b96fde47ab013df6aac9a8674b6fe2c52 --- /dev/null +++ b/binutils-memory-access-when-parsing-an-elf-file.patch @@ -0,0 +1,11 @@ +--- binutils.orig/bfd/elf.c 2023-04-28 12:54:08.090737942 +0100 ++++ binutils-2.30/bfd/elf.c 2023-04-28 12:53:28.602795763 +0100 +@@ -8398,6 +8398,8 @@ error_return_verref: + || bfd_bread (contents, hdr->sh_size, abfd) != hdr->sh_size) + goto error_return_verref; + ++ if (hdr->sh_info == 0) ++ goto error_return_verref; + elf_tdata (abfd)->verref = (Elf_Internal_Verneed *) + bfd_alloc2 (abfd, hdr->sh_info, sizeof (Elf_Internal_Verneed)); + diff --git a/binutils.spec b/binutils.spec index d34ffbdc0f1ed0cc7a8930de87435627f255414a..9df85f11f0956284b3e9f188cf6085d5d3c58fed 100644 --- a/binutils.spec +++ b/binutils.spec @@ -44,7 +44,7 @@ Summary: A GNU collection of binary utilities Name: binutils%{?name_cross}%{?_with_debug:-debug} Version: 2.30 -Release: 119%{anolis_release}%{?dist} +Release: 119%{anolis_release}%{?dist}.2 License: GPLv3+ URL: https://sourceware.org/binutils @@ -632,6 +632,10 @@ Patch101: binutils-coffgen-buffer-overrun.patch # Lifetime: Fixed in 2.35 Patch102: binutils-plugin-search.patch +# Purpose: Fix an illegal memory access when parsing an elf file containing corrupt symbol version information +# Lifetime: 2.39 +Patch103: binutils-memory-access-when-parsing-an-elf-file.patch + #Add by Anolis Patch1000: 0001-binutils-anolis-rebrand.patch @@ -889,6 +893,7 @@ using libelf instead of BFD. %patch100 -p1 %patch101 -p1 %patch102 -p1 +%patch103 -p1 %patch1000 -p1 %patch1001 -p1 %patch1002 -p1 @@ -1350,7 +1355,7 @@ exit 0 #---------------------------------------------------------------------------- %changelog -* Wed Jul 19 2023 Xing Li - 2.30-119.0.2 +* Thu Nov 02 2023 Xing Li - 2.30-119.0.2.2 - Fixup gas SIGSEGV for extremely long function name. (lixing@loongson.cn) - change loong64 to loongarch64. - Add ifunc support. @@ -1359,12 +1364,18 @@ exit 0 - Add 3A6000 opcode. - Fix some testsuite error. -* Tue May 30 2023 Xue haolin - 2.30-119.0.1 +* Thu Nov 02 2023 Xue haolin - 2.30-119.0.1.2 - Rebrand to Anolis OS. - Add loongarch support. (lixing@loongson.cn) - Fixup LoongArch wrong debug line. (lixing@loongson.cn) - Add LoongArch missing opcode. (lixing@loongson.cn) +* Fri Oct 20 2023 Nick Clifton - 2.30-119.2 +- Backport: Fix an illegal memory access when parsing an ELF file containing corrupt symbol version information. (RHEL-12956) + +* Thu Oct 12 2023 Nick Clifton - 2.30-119.1 +- Backport: Fix an illegal memory access when parsing an ELF file containing corrupt symbol version information. (#2164700) + * Mon Sep 05 2022 Nick Clifton - 2.30-119 - NVR Bump in order to allow rebuild now that the rhel-8.8.0-candidate tag is available. diff --git a/dist b/dist index 9c0e36ec42a2d9bfefacb21ac6354c9ddd910533..5aa45c5bf3f5e5b781981aec176b4910ac39baaf 100644 --- a/dist +++ b/dist @@ -1 +1 @@ -an8 +an8_8