CVE-2025-0840GNU Binutils objdump.c disassemble_bytes stack-based overflow
A vulnerability, which was classified as problematic, was found in GNU Binutils up to 2.43. This affects the function disassemble_bytes of the file binutils/objdump.c. The manipulation of the argument buf leads to stack-based buffer overflow. It is possible to initiate the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 2.44 is able to address this issue. The identifier of the patch is baac6c221e9d69335bf41366a1c7d87d8ab2f893. It is recommended to upgrade the affected component.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
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 25.10 | binutils | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | binutils | Fixed | 2.42-4ubuntu2.4 | UBUNTU-CVE-2025-0840 |
| Ubuntu 22.04 | binutils | Fixed | 2.38-4ubuntu2.7 | UBUNTU-CVE-2025-0840 |
| Ubuntu 20.04 | binutils | Fixed | 2.34-6ubuntu1.10 | UBUNTU-CVE-2025-0840 |
| Ubuntu 18.04 | binutils | Fix pending | 2.30-21ubuntu1~18.04.9+esm4 (Ubuntu Pro) | UBUNTU-CVE-2025-0840 |
| Ubuntu 16.04 | binutils | Fix pending | 2.26.1-1ubuntu1~16.04.8+esm11 (Ubuntu Pro) | UBUNTU-CVE-2025-0840 |
| Ubuntu 14.04 | binutils | Fix pending | 2.24-5ubuntu14.2+esm7 (Ubuntu Pro) | UBUNTU-CVE-2025-0840 |
| Debian 14 | binutils | Fixed | 2.43.90.20250122-1 | DEBIAN-CVE-2025-0840 |
| Debian 13 | binutils | Fixed | 2.43.90.20250122-1 | DEBIAN-CVE-2025-0840 |
| 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-2025-0840 | |
| 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 | 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-13-binutils | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-13-binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-13-binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-13-gdb | 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 | 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 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw-binutils-generic | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw32-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw64-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | binutils | Not affected | ||
| Red Hat Enterprise Linux 8 | binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-13-binutils | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-13-binutils-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-13-binutils-gold | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-13-gdb | 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 | 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 | ||
| Alpine Linux 3.24 | binutils | Fixed | 2.44-r0 | ALPINE-CVE-2025-0840 |
| Alpine Linux 3.23 | binutils | Fixed | 2.44-r0 | ALPINE-CVE-2025-0840 |
| Alpine Linux 3.22 | binutils | Fixed | 2.44-r0 | ALPINE-CVE-2025-0840 |
| Alpine Linux 3.21 | binutils | Fixed | 2.43.1-r2 | ALPINE-CVE-2025-0840 |
| Alpine Linux 3.20 | binutils | Fixed | 2.42-r1 | ALPINE-CVE-2025-0840 |
| Alpine Linux 3.19 | binutils | Fixed | 2.41-r1 | ALPINE-CVE-2025-0840 |
| Alpine Linux 3.18 | binutils | Fixed | 2.40-r8 | ALPINE-CVE-2025-0840 |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNU Binutils: affected: 2.0, 2.1, 2.2, 2.3, 2.4, 2.5
Vendor advisories:
References
- https://vuldb.com/?id.293997
- https://vuldb.com/?ctiid.293997
- https://vuldb.com/?submit.485255
- https://sourceware.org/bugzilla/show_bug.cgi?id=32560
- https://sourceware.org/bugzilla/attachment.cgi?id=15882
- https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=baac6c221e9d69335bf41366a1c7d87d8ab2f893
- https://www.gnu.org/
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.