REDHAT-BUG-2507670: High severity GNU binutils vulnerability
This is a vulnerability report sent to us through https://issues.redhat.com/browse/PSIRTSUPT-18741 and was created using the PoC auto-triage agents. It contains hints on the vulnerability extracted by the IA and the full report. ALWAYS review it before any action. Once working on this, don't forget to also update the JSM ticket.
An out-of-bounds write vulnerability was found in the BFD library's DLX ELF backend (bfd/elf32-dlx.c) in GNU binutils. The dlxrtypetohowto() function maps ELF relocation types to internal howto structures but fails to perform adequate bounds checking on attacker-controlled relocation type values (via ELF32RTYPE(rinfo)) before indexing into the dlxelfhowtotable[] array. The DLX relocation type number space is non-contiguous (basic types 0-6, extended types at 0x10000+), but the default case in the switch statement allows arbitrary index values to reach the array access.
A specially crafted ELF/DLX object file can trigger this out-of-bounds write when processed by any BFD-consuming tool (objdump, readelf, strip, ld, nm, objcopy). The vulnerability has been demonstrated to achieve arbitrary code execution via a File Stream Oriented Programming (FSOP) attack against glibc FILE structures (stderr), redirecting control flow to system().
Attack scenarios include CI/CD pipelines performing automated binary analysis, developer workstations running objdump/readelf on untrusted binaries, automated security scanning or malware analysis tools invoking binutils, and package build systems processing third-party code.
Note: This vulnerability is only exploitable when binutils is built with the DLX backend enabled (typically via --enable-targets=all). Manual verification of Red Hat package build configurations is required to confirm affected product scope.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2507670?
The severity of REDHAT-BUG-2507670 is high with a score of 7.
What software is affected by REDHAT-BUG-2507670?
REDHAT-BUG-2507670 affects the GNU binutils software.
What is the risk level of REDHAT-BUG-2507670?
The risk level of REDHAT-BUG-2507670 is assessed at 33.
How do I fix REDHAT-BUG-2507670?
To fix REDHAT-BUG-2507670, review the vulnerability report and apply the recommended patches or updates.
When was REDHAT-BUG-2507670 published?
REDHAT-BUG-2507670 was published on July 27, 2026.