Landing: a8740b7533b4

Project / Subsystem

binutils / bfd

Date

2026-05-26

Author

Alan Modra <amodra@sourceware.org>

Commit

a8740b7533b4df34d4d7bc5be9bb2108d019fce5

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
bfd
patch_id
commit_hash
a8740b7533b4df34d4d7bc5be9bb2108d019fce5
source_type
public_inbox
headline
BFD: Fix buffer overflow in nds32_elf_lo12_reloc.
tldr
A buffer overflow was fixed in the `nds32_elf_lo12_reloc` function by adding a sanity check on the relocation offset.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • bfd
  • security
  • nds32
  • relocation
discussion_id_link
bugzilla_pr
date
2026-05-26T00:00:00.000Z

A potential buffer overflow in the nds32_elf_lo12_reloc function was fixed. The function reads the lo reloc word when processing stashed hi relocs; a sanity check was added to ensure the relocation offset is valid before accessing memory. The code was also updated to use OCTETS_PER_BYTE instead of bfd_octets_per_byte throughout the file.