Skip to contentSkip to conversation

binutils: fix CVE-2025-11081

PATCH New [email protected] 1 participant 2 messages Oct 28, 2025

lore
Share & tools
lore
#0 lore raw

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.42.inc                |  1 +
 .../binutils/0026-CVE-2025-11081.patch        | 84 +++++++++++++++++++
 2 files changed, 85 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0026-CVE-2025-11081.patch
meta/recipes-devtools/binutils/binutils-2.42.inc +1 -0
index 3e180b6018..5447ab0da4 100644
@@ -61,5 +61,6 @@ SRC_URI = "\
      file://0023-CVE-2025-7545.patch \
      file://0024-CVE-2025-11082.patch \
      file://0025-CVE-2025-11083.patch \
+     file://0026-CVE-2025-11081.patch \
 "
 S  = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/0026-CVE-2025-11081.patch new file +84 -0

84 lines not on this page · raw message

Signature · 1 line
2.49.0
#1 lore raw

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.42.inc                |  1 +
 .../binutils/0027-CVE-2025-8225.patch         | 47 +++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0027-CVE-2025-8225.patch
meta/recipes-devtools/binutils/binutils-2.42.inc +1 -0
index 5447ab0da4..dcd3325ecc 100644
@@ -62,5 +62,6 @@ SRC_URI = "\
      file://0024-CVE-2025-11082.patch \
      file://0025-CVE-2025-11083.patch \
      file://0026-CVE-2025-11081.patch \
+     file://0027-CVE-2025-8225.patch \
 "
 S  = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/0027-CVE-2025-8225.patch new file +47 -0

47 lines not on this page · raw message

Signature · 1 line
2.49.0