binutils Newspaper
NOVEMBER 30, 2026
binutils — Proposed

binutils: od-xcoff: validate XCOFF symbol table bounds

Hardens XCOFF parsing by validating symbol table bounds, preventing heap buffer overflows from malformed auxiliary record counts.

This patch addresses a heap buffer overflow vulnerability in the XCOFF dumper’s symbol table parsing. It validates the number of auxiliary records claimed by each symbol against the remaining entries in the table, preventing out-of-bounds writes. The patch also adds file-size bounds checks, 32-bit pointer wrap protection, and string table termination, with new tests to cover these scenarios.

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

    Validates XCOFF symbol table bounds to prevent heap buffer overflows caused by malformed auxiliary record counts.

    “xcoff32_read_symbols reads each symbol's auxiliary records into &s[j + 1].aux, advancing by e_numaux entries. If a symbol claims more auxiliary entries than remain in the table, the read writes an 18-byte auxiliary record past the end of the allocated data->syms array (AddressSanitizer: heap-buffer-overflow) before any dump pass. objdump's standalone XCOFF dumper parses the format itself and th…”

In Details

This is the first patch in a series hardening the od-xcoff dumper. It specifically targets the symbol table parsing logic. By validating the e_numaux field against the available entries and adding file-size and pointer-wrap checks, it prevents heap buffer overflows that could occur with malformed XCOFF files. The changes ensure that the dumper's own parsing is as robust as the linker's entry points, complemented by new test cases for various boundary conditions.

For Context
XCOFF
A file format used on IBM AIX systems, similar to COFF and ELF.
symbol table
A table within an object file that lists the symbols (functions, variables) defined or referenced by the file.
auxiliary records
Additional data associated with a symbol entry in some object file formats, providing more details.
heap buffer overflow
A vulnerability where a program writes data beyond the allocated buffer in the heap, potentially corrupting adjacent memory.
string table
A section in an object file that stores string literals, often used for symbol names or other text data.
Filed Under: XCOFFhardeningobjdumpsecurityparsing