CVE-2026-18220

HIGH

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

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-18220. PoCs published by 4D4J.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2026-18220, an out-of-bounds write vulnerability in GNU Binutils' objdump (bfd/elf32-dlx.c). The exploit leverages a missing bounds check in the DLX relocation handler to corrupt _IO_2_1_stderr_ via FSOP (File Stream Oriented Programming), achieving arbitrary code execution via system() when objdump processes a crafted ELF file.

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

Exploits (1)

nomisec WORKING POC 74 stars
by 4D4J · poc
https://github.com/4D4J/objdump-Out-Of-Bounds-write

This repository contains a functional exploit for CVE-2026-18220, an out-of-bounds write vulnerability in GNU Binutils' objdump (bfd/elf32-dlx.c). The exploit leverages a missing bounds check in the DLX relocation handler to corrupt _IO_2_1_stderr_ via FSOP (File Stream Oriented Programming), achieving arbitrary code execution via system() when objdump processes a crafted ELF file.

Classification
Working Poc 99%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: GNU Binutils (all versions through current HEAD), specifically objdump with DLX support
No auth needed
Prerequisites: Target system must have GNU Binutils with DLX support compiled · ASLR can be bypassed via ptrace (handled by poc_ptrace.py) · Glibc 2.41 (Debian 13) or similar version with predictable _IO_2_1_stderr_ layout · Ptrace permissions on the target system
mistral-large-3 · analyzed Jul 29, 2026 Full analysis →

References (2)

Core 2
Core References
Vdb Entry, X_Refsource_Redhat vdb-entry x_refsource_redhat
https://access.redhat.com/security/cve/CVE-2026-18220
Issue Tracking, X_Refsource_Redhat issue-tracking x_refsource_redhat
RHBZ#2507670
https://bugzilla.redhat.com/show_bug.cgi?id=2507670

Scores

CVSS v3 7.8
EPSS 0.0019
EPSS Percentile 8.5%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-787
Status published
Products (7)
Red Hat/Red Hat Enterprise Linux 10
Red Hat/Red Hat Enterprise Linux 6
Red Hat/Red Hat Enterprise Linux 7
Red Hat/Red Hat Enterprise Linux 8
Red Hat/Red Hat Enterprise Linux 9
Red Hat/Red Hat Hardened Images
Red Hat/Red Hat OpenShift Container Platform 4
Published Jul 29, 2026
Tracked Since Jul 29, 2026