Landing: 3ec37a194819

Project / Subsystem

binutils / bfd

Date

2026-05-26

Author

Alan Modra <amodra@sourceware.org>

Commit

3ec37a1948196800af10018b8b11b9da4abc886d

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
bfd
patch_id
commit_hash
3ec37a1948196800af10018b8b11b9da4abc886d
source_type
public_inbox
headline
BFD: Avoid use of uninitialized value in aarch64 core.
tldr
BFD now ignores rawsize in bfd_core to avoid using uninitialized values in AArch64 memory tag sections.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • bfd
  • aarch64
  • memory
  • security
discussion_id_link
bugzilla_pr
date
2026-05-26T00:00:00.000Z

BFD was allocating excessive memory for AArch64 memory tag sections because it used the rawsize field to store the memory range, which is typically much larger than the actual data size. In some cases with fuzzed input, rawsize could be smaller than size, leading to uninitialized values being used. This commit fixes the issue by ignoring rawsize in bfd_core, preventing the allocation of excessive memory and the use of uninitialized data.