CVE-2026-18220Binutils: binutils: out-of-bounds write in bfd dlx elf backend relocation processing
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).
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | binutils | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | binutils | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | binutils | Not affected vulnerable_code_not_present | ||
| Debian 14 | binutils | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-18220 | |
| Debian 13 | binutils | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-18220 | |
| Debian 12 | binutils | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-18220 | |
| Red Hat Enterprise Linux 10 | binutils | Not affected | ||
| Red Hat Enterprise Linux 10 | binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 10 | gcc-toolset-15-binutils | Not affected | ||
| Red Hat Enterprise Linux 10 | gcc-toolset-15-binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | gcc-toolset-15-binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 10 | gcc-toolset-15-binutils-gprofng | Not affected | ||
| Red Hat Enterprise Linux 10 | gcc-toolset-16-binutils | Not affected | ||
| Red Hat Enterprise Linux 10 | gcc-toolset-16-binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | gcc-toolset-16-binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 10 | gcc-toolset-16-binutils-gprofng | Not affected | ||
| Red Hat Enterprise Linux 10 | gdb | Not affected | ||
| Red Hat Enterprise Linux 10 | gdb-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | gdb-gdbserver | Not affected | ||
| Red Hat Enterprise Linux 10 | gdb-headless | Not affected | ||
| Red Hat Enterprise Linux 10 | gdb-minimal | Not affected | ||
| Red Hat Enterprise Linux 10 | mingw-binutils-generic | Not affected | ||
| Red Hat Enterprise Linux 10 | mingw32-binutils | Not affected | ||
| Red Hat Enterprise Linux 10 | mingw64-binutils | Not affected | ||
| Red Hat Enterprise Linux 9 | binutils | Not affected | ||
| Red Hat Enterprise Linux 9 | binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-14-binutils | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-14-binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-14-binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-14-binutils-gprofng | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-15-binutils | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-15-binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-15-binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-15-binutils-gprofng | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-16-binutils | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-16-binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-16-binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-16-binutils-gprofng | Not affected | ||
| Red Hat Enterprise Linux 9 | gdb | Not affected | ||
| Red Hat Enterprise Linux 9 | gdb-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | gdb-gdbserver | Not affected | ||
| Red Hat Enterprise Linux 9 | gdb-headless | Not affected | ||
| Red Hat Enterprise Linux 9 | gdb-minimal | Not affected | ||
| Red Hat Enterprise Linux 9 | mingw-binutils | Not affected | ||
| Red Hat Enterprise Linux 9 | mingw-binutils-generic | Not affected | ||
| Red Hat Enterprise Linux 9 | mingw32-binutils | Not affected | ||
| Red Hat Enterprise Linux 9 | mingw64-binutils | Not affected | ||
| Red Hat Enterprise Linux 8 | binutils | Not affected | ||
| Red Hat Enterprise Linux 8 | binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-14-binutils | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-14-binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-14-binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-14-binutils-gprofng | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-14-gdb | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-15-binutils | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-15-binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-15-binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-15-binutils-gprofng | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-15-gdb | Not affected | ||
| Red Hat Enterprise Linux 8 | gdb | Not affected | ||
| Red Hat Enterprise Linux 8 | gdb-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | gdb-gdbserver | Not affected | ||
| Red Hat Enterprise Linux 8 | gdb-headless | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw-binutils | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw-binutils-generic | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw32-binutils | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw64-binutils | Not affected | ||
| Red Hat Enterprise Linux 7 | binutils | Not affected | ||
| Red Hat Enterprise Linux 7 | binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | gdb | Not affected | ||
| Red Hat Enterprise Linux 7 | gdb-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | gdb-gdbserver | Not affected | ||
| Red Hat Enterprise Linux 6 | binutils | Not affected | ||
| Red Hat Enterprise Linux 6 | binutils-devel | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Hardened Images
- Red Hat OpenShift Container Platform 4
Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References
- https://access.redhat.com/security/cve/CVE-2026-18220
- https://bugzilla.redhat.com/show_bug.cgi?id=2507670
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.