binutils Newspaper
NOVEMBER 30, 2026
binutils — Proposed

binutils: od-xcoff: malformed input hardening

A series of patches to harden the XCOFF dumper against malformed input, fixing parsing issues and preventing crashes.

This series of six patches aims to improve the robustness of the binutils/od-xcoff.c dumper by addressing various issues related to malformed input. The changes focus on validating section bounds, symbol table entries, loader section parsing, traceback tag parsing, and relocation symbol slots. These improvements prevent crashes, memory leaks, and data corruption that could arise from non-compliant XCOFF files, complementing existing validation in the linker.

In the Thread 1 participant
  1. Harshit Kumar <harshit7kr@gmail.com> proposer

    Submits a series of patches to harden the XCOFF dumper against malformed input, detailing the specific problems addressed in each patch.

    “This series hardens the XCOFF dumper (binutils/od-xcoff.c) against malformed input. It bounds section, symbol, loader, typchk, except, and traceback parsing, fixes a resource leak, and validates relocation symbol slots before printing them. This is robustness hardening for malformed input, not a security fix. Problems fixed: 1. xcoff32_read_symbols reads auxiliary records into &s[j + 1].aux wit…”

In Details

This is the cover letter for a six-patch series that enhances the robustness of binutils' XCOFF object file dumper (od-xcoff.c). The series addresses various parsing vulnerabilities, such as out-of-bounds reads, heap overflows, and memory leaks, that can be triggered by malformed XCOFF inputs. These fixes ensure that objdump and related tools handle corrupted object files more gracefully, preventing crashes and improving overall stability.

For Context
XCOFF
A file format used on IBM AIX systems, similar to COFF and ELF.
objdump
A command-line utility that displays information from object files, including disassembly and symbol tables.
hardening
The process of making software more secure and resilient against attacks or unexpected inputs.
malformed input
Data that does not conform to the expected format or structure of a file or protocol.
heap buffer overflow
A vulnerability where a program writes data beyond the allocated buffer in the heap, potentially corrupting adjacent memory.
Filed Under: XCOFFhardeningobjdumpparsingsecurity