p PatchFirst

CVE-2026-18220

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

CVSS 7.8 · High · EPSS 0.3%

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • red hat enterprise linux 10

    No fix published

  • red hat enterprise linux 6

    No fix published

  • red hat enterprise linux 7

    No fix published

  • red hat enterprise linux 8

    No fix published

  • red hat enterprise linux 9

    No fix published

  • red hat hardened images

    No fix published

  • red hat openshift container platform 4

    No fix published

  • binutils Debian 12

    Versions
    • 2.40-2
    • 2.40.50.20230111-1
    • 2.40.50.20230215-1
    • 2.40.50.20230501-1
    • 2.40.50.20230510-1
    • 2.40.50.20230602-1
    All versions (126)
    • 2.40.50.20230611-1
    • 2.40.50.20230611-2
    • 2.40.50.20230622-1
    • 2.40.50.20230625-1
    • 2.40.50.20230630-1
    • 2.40.90.20230705-1
    • 2.40.90.20230714-1
    • 2.40.90.20230714-2
    • 2.40.90.20230720-1
    • 2.40.90.20230729-1
    • 2.40.90.20230729-2
    • 2.41-1
    • 2.41-2
    • 2.41-3
    • 2.41-4
    • 2.41-5
    • 2.41-6
    • 2.41-7
    • 2.41.50.20230731-1
    • 2.41.50.20230803-1
    • 2.41.50.20230905-1
    • 2.41.50.20231010-1
    • 2.41.50.20231101-1
    • 2.41.50.20231125-1
    • 2.41.50.20231202-1
    • 2.41.50.20231206-1
    • 2.41.50.20231214-1
    • 2.41.50.20231227-1
    • 2.41.90.20240115-1
    • 2.41.90.20240122-1
    • 2.42-1
    • 2.42-2
    • 2.42-2+hurd.1
    • 2.42-3
    • 2.42-4
    • 2.42.50.20240614-1
    • 2.42.50.20240618-1
    • 2.42.50.20240625-1
    • 2.42.50.20240710-1
    • 2.42.90.20240720-1
    • 2.42.90.20240720-2
    • 2.43-1
    • 2.43-2
    • 2.43.1-1
    • 2.43.1-2
    • 2.43.1-3
    • 2.43.1-4
    • 2.43.1-5
    • 2.43.50.20240817-1
    • 2.43.50.20240909-1
    • 2.43.50.20241004-1
    • 2.43.50.20241112-1
    • 2.43.50.20241126-1
    • 2.43.50.20241126-2
    • 2.43.50.20241126-3
    • 2.43.50.20241204-1
    • 2.43.50.20241204-2
    • 2.43.50.20241210-1
    • 2.43.50.20241215-1
    • 2.43.50.20241221-1
    • 2.43.50.20241230-1
    • 2.43.50.20250108-1
    • 2.43.90.20250122-1
    • 2.43.90.20250122-2
    • 2.43.90.20250127-1
    • 2.43.90.20250202-1
    • 2.44-1
    • 2.44-2
    • 2.44-3
    • 2.44.50.20250201-1
    • 2.44.50.20250207-1
    • 2.44.50.20250218-1
    • 2.44.50.20250218-2
    • 2.44.50.20250309-1
    • 2.44.50.20250405-1
    • 2.44.50.20250502-1
    • 2.44.50.20250520-1
    • 2.44.50.20250528-1
    • 2.44.50.20250707-1
    • 2.44.90.20250719-1
    • 2.45-1
    • 2.45-2
    • 2.45-3
    • 2.45-4
    • 2.45-5
    • 2.45-6
    • 2.45-7
    • 2.45-8
    • 2.45.50.20250813-1
    • 2.45.50.20250903-1
    • 2.45.50.20251005-1
    • 2.45.50.20251023-1
    • 2.45.50.20251023-2
    • 2.45.50.20251122-1
    • 2.45.50.20251125-1
    • 2.45.50.20251201-1
    • 2.45.50.20251209-1
    • 2.45.50.20260116-1
    • 2.45.50.20260119-1
    • 2.45.90.20260125-1
    • 2.45.90.20260201-1
    • 2.46-1
    • 2.46-2
    • 2.46-3
    • 2.46.50.20260216-1
    • 2.46.50.20260509-1
    • 2.46.50.20260519-1
    • 2.46.50.20260608-1
    • 2.46.50.20260617-1
    • 2.46.90.20260712-1
    • 2.47-1
    • 2.47-2
    • 2.47-3
    • 2.47-4
    • 2.47-5
    • 2.47-6
    • 2.47.50.20260813-1
    • 2.47.50.20260813-2
    • 2.47.50.20260813-3
    • 2.47.50.20260901-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • binutils Debian 13

    Versions
    • 2.44-3
    • 2.44.50.20250201-1
    • 2.44.50.20250207-1
    • 2.44.50.20250218-1
    • 2.44.50.20250218-2
    • 2.44.50.20250309-1
    All versions (52)
    • 2.44.50.20250405-1
    • 2.44.50.20250502-1
    • 2.44.50.20250520-1
    • 2.44.50.20250528-1
    • 2.44.50.20250707-1
    • 2.44.90.20250719-1
    • 2.45-1
    • 2.45-2
    • 2.45-3
    • 2.45-4
    • 2.45-5
    • 2.45-6
    • 2.45-7
    • 2.45-8
    • 2.45.50.20250813-1
    • 2.45.50.20250903-1
    • 2.45.50.20251005-1
    • 2.45.50.20251023-1
    • 2.45.50.20251023-2
    • 2.45.50.20251122-1
    • 2.45.50.20251125-1
    • 2.45.50.20251201-1
    • 2.45.50.20251209-1
    • 2.45.50.20260116-1
    • 2.45.50.20260119-1
    • 2.45.90.20260125-1
    • 2.45.90.20260201-1
    • 2.46-1
    • 2.46-2
    • 2.46-3
    • 2.46.50.20260216-1
    • 2.46.50.20260509-1
    • 2.46.50.20260519-1
    • 2.46.50.20260608-1
    • 2.46.50.20260617-1
    • 2.46.90.20260712-1
    • 2.47-1
    • 2.47-2
    • 2.47-3
    • 2.47-4
    • 2.47-5
    • 2.47-6
    • 2.47.50.20260813-1
    • 2.47.50.20260813-2
    • 2.47.50.20260813-3
    • 2.47.50.20260901-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • binutils Debian 14

    Versions
    • 2.44-3
    • 2.44.50.20250201-1
    • 2.44.50.20250207-1
    • 2.44.50.20250218-1
    • 2.44.50.20250218-2
    • 2.44.50.20250309-1
    All versions (52)
    • 2.44.50.20250405-1
    • 2.44.50.20250502-1
    • 2.44.50.20250520-1
    • 2.44.50.20250528-1
    • 2.44.50.20250707-1
    • 2.44.90.20250719-1
    • 2.45-1
    • 2.45-2
    • 2.45-3
    • 2.45-4
    • 2.45-5
    • 2.45-6
    • 2.45-7
    • 2.45-8
    • 2.45.50.20250813-1
    • 2.45.50.20250903-1
    • 2.45.50.20251005-1
    • 2.45.50.20251023-1
    • 2.45.50.20251023-2
    • 2.45.50.20251122-1
    • 2.45.50.20251125-1
    • 2.45.50.20251201-1
    • 2.45.50.20251209-1
    • 2.45.50.20260116-1
    • 2.45.50.20260119-1
    • 2.45.90.20260125-1
    • 2.45.90.20260201-1
    • 2.46-1
    • 2.46-2
    • 2.46-3
    • 2.46.50.20260216-1
    • 2.46.50.20260509-1
    • 2.46.50.20260519-1
    • 2.46.50.20260608-1
    • 2.46.50.20260617-1
    • 2.46.90.20260712-1
    • 2.47-1
    • 2.47-2
    • 2.47-3
    • 2.47-4
    • 2.47-5
    • 2.47-6
    • 2.47.50.20260813-1
    • 2.47.50.20260813-2
    • 2.47.50.20260813-3
    • 2.47.50.20260901-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →