# CVE-2026-18220: Binutils: binutils: out-of-bounds write in bfd dlx elf backend relocation processing

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-07-29T09:47:51.891Z
- Modified: 2026-07-30T14:15:31.167Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

An out-of-bounds write vulnerability was found in the BFD library's DLX ELF backend (bfd/elf32-dlx.c) in GNU binutils. The dlx_rtype_to_howto() function maps ELF relocation types to internal howto structures but fails to perform adequate bounds checking on attacker-controlled relocation type values (via ELF32_R_TYPE(r_info)) before indexing into the dlx_elf_howto_table[] 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).

(As written by CVE List.)

## Affected

- binutils: no versions given
- gcc-toolset-15-binutils: no versions given
- gcc-toolset-16-binutils: no versions given
- gdb: no versions given
- mingw-binutils: no versions given
- gcc-toolset-14-binutils: no versions given
- gcc-toolset-14-gdb: no versions given
- gcc-toolset-15-gdb: no versions given
- rhcos: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-18220> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2507670> (issue-tracking)

## Sources

- CVE List: [CVE-2026-18220](https://www.cve.org/CVERecord?id=CVE-2026-18220), CVE Terms of Use, modified 2026-07-29
- NVD: [CVE-2026-18220](https://nvd.nist.gov/vuln/detail/CVE-2026-18220), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2026-18220 · Whole record: https://cve.day/CVE-2026-18220.json · Rebuilt by cve.day 2026-11-25T22:59:30.427Z
