CVEfocus › CVE database › CVE-2026-18220

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

CVSS 7.8 HighEPSS 0.2% (higher than 5% of CVEs)Published 2026-07-29Updated 2026-07-29Assigner: redhat

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).

CWE-787

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

3Will not fix
73Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04binutilsNot affected
vulnerable_code_not_present
Ubuntu 24.04binutilsNot affected
vulnerable_code_not_present
Ubuntu 22.04binutilsNot affected
vulnerable_code_not_present
Debian 14binutilsWill 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 13binutilsWill 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 12binutilsWill 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 10binutilsNot affected
Red Hat Enterprise Linux 10binutils-develNot affected
Red Hat Enterprise Linux 10binutils-goldNot affected
Red Hat Enterprise Linux 10gcc-toolset-15-binutilsNot affected
Red Hat Enterprise Linux 10gcc-toolset-15-binutils-develNot affected
Red Hat Enterprise Linux 10gcc-toolset-15-binutils-goldNot affected
Red Hat Enterprise Linux 10gcc-toolset-15-binutils-gprofngNot affected
Red Hat Enterprise Linux 10gcc-toolset-16-binutilsNot affected
Red Hat Enterprise Linux 10gcc-toolset-16-binutils-develNot affected
Red Hat Enterprise Linux 10gcc-toolset-16-binutils-goldNot affected
Red Hat Enterprise Linux 10gcc-toolset-16-binutils-gprofngNot affected
Red Hat Enterprise Linux 10gdbNot affected
Red Hat Enterprise Linux 10gdb-docNot affected
Red Hat Enterprise Linux 10gdb-gdbserverNot affected
Red Hat Enterprise Linux 10gdb-headlessNot affected
Red Hat Enterprise Linux 10gdb-minimalNot affected
Red Hat Enterprise Linux 10mingw-binutils-genericNot affected
Red Hat Enterprise Linux 10mingw32-binutilsNot affected
Red Hat Enterprise Linux 10mingw64-binutilsNot affected
Red Hat Enterprise Linux 9binutilsNot affected
Red Hat Enterprise Linux 9binutils-develNot affected
Red Hat Enterprise Linux 9binutils-goldNot affected
Red Hat Enterprise Linux 9gcc-toolset-14-binutilsNot affected
Red Hat Enterprise Linux 9gcc-toolset-14-binutils-develNot affected
Red Hat Enterprise Linux 9gcc-toolset-14-binutils-goldNot affected
Red Hat Enterprise Linux 9gcc-toolset-14-binutils-gprofngNot affected
Red Hat Enterprise Linux 9gcc-toolset-15-binutilsNot affected
Red Hat Enterprise Linux 9gcc-toolset-15-binutils-develNot affected
Red Hat Enterprise Linux 9gcc-toolset-15-binutils-goldNot affected
Red Hat Enterprise Linux 9gcc-toolset-15-binutils-gprofngNot affected
Red Hat Enterprise Linux 9gcc-toolset-16-binutilsNot affected
Red Hat Enterprise Linux 9gcc-toolset-16-binutils-develNot affected
Red Hat Enterprise Linux 9gcc-toolset-16-binutils-goldNot affected
Red Hat Enterprise Linux 9gcc-toolset-16-binutils-gprofngNot affected
Red Hat Enterprise Linux 9gdbNot affected
Red Hat Enterprise Linux 9gdb-docNot affected
Red Hat Enterprise Linux 9gdb-gdbserverNot affected
Red Hat Enterprise Linux 9gdb-headlessNot affected
Red Hat Enterprise Linux 9gdb-minimalNot affected
Red Hat Enterprise Linux 9mingw-binutilsNot affected
Red Hat Enterprise Linux 9mingw-binutils-genericNot affected
Red Hat Enterprise Linux 9mingw32-binutilsNot affected
Red Hat Enterprise Linux 9mingw64-binutilsNot affected
Red Hat Enterprise Linux 8binutilsNot affected
Red Hat Enterprise Linux 8binutils-develNot affected
Red Hat Enterprise Linux 8gcc-toolset-14-binutilsNot affected
Red Hat Enterprise Linux 8gcc-toolset-14-binutils-develNot affected
Red Hat Enterprise Linux 8gcc-toolset-14-binutils-goldNot affected
Red Hat Enterprise Linux 8gcc-toolset-14-binutils-gprofngNot affected
Red Hat Enterprise Linux 8gcc-toolset-14-gdbNot affected
Red Hat Enterprise Linux 8gcc-toolset-15-binutilsNot affected
Red Hat Enterprise Linux 8gcc-toolset-15-binutils-develNot affected
Red Hat Enterprise Linux 8gcc-toolset-15-binutils-goldNot affected
Red Hat Enterprise Linux 8gcc-toolset-15-binutils-gprofngNot affected
Red Hat Enterprise Linux 8gcc-toolset-15-gdbNot affected
Red Hat Enterprise Linux 8gdbNot affected
Red Hat Enterprise Linux 8gdb-docNot affected
Red Hat Enterprise Linux 8gdb-gdbserverNot affected
Red Hat Enterprise Linux 8gdb-headlessNot affected
Red Hat Enterprise Linux 8mingw-binutilsNot affected
Red Hat Enterprise Linux 8mingw-binutils-genericNot affected
Red Hat Enterprise Linux 8mingw32-binutilsNot affected
Red Hat Enterprise Linux 8mingw64-binutilsNot affected
Red Hat Enterprise Linux 7binutilsNot affected
Red Hat Enterprise Linux 7binutils-develNot affected
Red Hat Enterprise Linux 7gdbNot affected
Red Hat Enterprise Linux 7gdb-docNot affected
Red Hat Enterprise Linux 7gdb-gdbserverNot affected
Red Hat Enterprise Linux 6binutilsNot affected
Red Hat Enterprise Linux 6binutils-develNot 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.

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

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.