binutils: fix CVE-2025-11081
PATCH 1/2 binutils: fix CVE-2025-11081
From: Yash Shinde <[email protected]>
CVE: CVE-2025-11081
Trying to dump .sframe in a PE file results in a segfault accessing elf_section_data.
* objdump (dump_sframe_section, dump_dwarf_section): Don't access elf_section_type without first checking the file is ELF.
PR 33406 SEGV in dump_dwarf_section
[https://sourceware.org/bugzilla/show_bug.cgi?id=33406]
Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=f87a66db645caf8cc0e6fc87b0c28c78a38af59b]
--- .../binutils/binutils-2.38.inc | 1 + .../binutils/0046-CVE-2025-11081.patch | 84 +++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/0046-CVE-2025-11081.patch
meta/recipes-devtools/binutils/binutils-2.38.inc +1 -0
@@ -82,5 +82,6 @@ SRC_URI = "\ file://0043-CVE-2025-7545.patch \ file://0044-CVE-2025-11082.patch \ file://0045-CVE-2025-11083.patch \ + file://0046-CVE-2025-11081.patch \ " S = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/0046-CVE-2025-11081.patch new file +84 -0
84 lines not on this page · raw message
Signature · 1 line
2.49.0
PATCH 2/2 binutils: fix CVE-2025-8225
From: Yash Shinde <[email protected]>
CVE: CVE-2025-8225
It is possible with fuzzed files to have num_debug_info_entries zero after allocating space for debug_information, leading to multiple allocations.
* dwarf.c (process_debug_info): Don't test num_debug_info_entries to determine whether debug_information has been allocated, test alloc_num_debug_info_entries.
Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=e51fdff7d2e538c0e5accdd65649ac68e6e0ddd4]
--- .../binutils/binutils-2.38.inc | 1 + .../binutils/0047-CVE-2025-8225.patch | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/0047-CVE-2025-8225.patch
meta/recipes-devtools/binutils/binutils-2.38.inc +1 -0
@@ -83,5 +83,6 @@ SRC_URI = "\ file://0044-CVE-2025-11082.patch \ file://0045-CVE-2025-11083.patch \ file://0046-CVE-2025-11081.patch \ + file://0047-CVE-2025-8225.patch \ " S = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/0047-CVE-2025-8225.patch new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
2.49.0