Submit #925227: GNU Binutils 2.47 Memory Corruptioninfo

TitleGNU Binutils 2.47 Memory Corruption
DescriptionA vulnerability was found in GNU Binutils 2.47. The ld linker has a NULL pointer dereference in elf_orphan_compatible (ld/ldelf.c:2092) when processing malformed ELF object files during relocatable linking (-r option). When an orphan section has no compatible output section, the function dereferences a NULL pointer causing a SEGV crash. Reproducer: ld -r -o /dev/null bug_2.o (with PoC file). Stack trace: #0 elf_orphan_compatible ld/ldelf.c:2092, #1 ldelf_place_orphan ld/ldelf.c:2259, #2 ldemul_place_orphan ld/ldemul.c:152, #3 ldlang_place_orphan ld/ldlang.c:7815, #4 lang_place_orphans ld/ldlang.c:7871.
Source⚠️ https://sourceware.org/bugzilla/show_bug.cgi?id=34450
User
 wsstssw (UID 100468)
Submission08/12/2026 03:13 (1 month ago)
Moderation09/13/2026 21:21 (1 month later)
StatusAccepted
VulDB entry403330 [GNU Binutils 2.47 ELF Orphan Section ld/ldelf.c elf_orphan_compatible null pointer dereference]
Points20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!