cve.bz

CVE-2025-0840 gnu binutils: Stack-based Buffer Overflow

6.3 mediumExploit referenceEPSS 0.8%Fix available

Medium (6.3) in gnu binutils. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

6.3 medium
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-01-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-121 Stack-based Buffer Overflow
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-0840 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-0840?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-0840?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-0840 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:binutilsbefore 2.44

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12binutilsno fix listedDEBIAN-CVE-2025-0840
Debian13, 14binutils2.43.90.20250122-1DEBIAN-CVE-2025-0840
Ubuntu20.04:LTSbinutils2.34-6ubuntu1.10UBUNTU-CVE-2025-0840 USN-7306-1
Ubuntu22.04:LTSbinutils2.38-4ubuntu2.7UBUNTU-CVE-2025-0840 USN-7306-1 USN-7899-1
Ubuntu24.04:LTSbinutils2.42-4ubuntu2.4UBUNTU-CVE-2025-0840 USN-7306-1 USN-7899-1
Ubuntu25.10binutils2.45-7ubuntu1.1USN-7899-1
UbuntuPro:14.04:LTSbinutils2.24-5ubuntu14.2+esm7UBUNTU-CVE-2025-0840 USN-7899-1
UbuntuPro:16.04:LTSbinutils2.26.1-1ubuntu1~16.04.8+esm11UBUNTU-CVE-2025-0840 USN-7423-2 USN-7899-1
UbuntuPro:18.04:LTSbinutils2.30-21ubuntu1~18.04.9+esm4UBUNTU-CVE-2025-0840 USN-7423-2 USN-7899-1
UbuntuPro:20.04:LTSbinutils2.34-6ubuntu1.11+esm1USN-7899-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 17 morebinutils2.45-150100.7.57.1SUSE-SU-2025:4096-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 moreopenucx1.9.0-150300.4.2.5SUSE-SU-2025:4096-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 moreperf5.3.18-150300.38.7.1SUSE-SU-2025:4096-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 moreperf5.14.21-150400.44.20.1SUSE-SU-2025:4096-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 moreopenucx1.11.1-150400.4.2.1SUSE-SU-2025:4096-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 moreopenucx1.13.1-150500.4.2.5SUSE-SU-2025:4096-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 moreperf5.14.21-150500.52.5.1SUSE-SU-2025:4096-1
SUSELinux Enterprise Module for Basesystem 15 SP6openucx1.15.0-150600.3.5.2SUSE-SU-2025:4096-1
SUSELinux Enterprise Module for Basesystem 15 SP7openucx1.17.0-150700.4.2.7SUSE-SU-2025:4096-1
SUSELinux Enterprise Module for Development Tools 15 SP6perf6.4.0.git33229.a3afe13a7f-150600.3.17.1SUSE-SU-2025:4096-1
SUSELinux Enterprise Module for Development Tools 15 SP7perf6.4.0.git54263.0aad576b1c-150700.3.2.2SUSE-SU-2025:4096-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0binutils2.45-160000.1.1SUSE-SU-2025:21195-1
2 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6binutils, cross-rx-binutils, cross-arm-binutils and 22 more2.45-150100.7.57.1SUSE-SU-2025:4096-1
openSUSELeap 15.6openucx1.15.0-150600.3.5.2SUSE-SU-2025:4096-1
openSUSELeap 15.6perf6.4.0.git33229.a3afe13a7f-150600.3.17.1SUSE-SU-2025:4096-1
openSUSELeap 16.0binutils, cross-rx-binutils, cross-arm-binutils and 23 more2.45-160000.1.1openSUSE-SU-2025:20150-1
openSUSELeap 16.0bpftool7.5.0-160000.2.3openSUSE-SU-2025:20150-1
openSUSETumbleweedbinutils2.45-2.1openSUSE-SU-2025:15725-1
Alpinev3.18binutils2.40-r8ALPINE-CVE-2025-0840
Alpinev3.19binutils2.41-r1ALPINE-CVE-2025-0840
Alpinev3.20binutils2.42-r1ALPINE-CVE-2025-0840
Alpinev3.21binutils2.43.1-r2ALPINE-CVE-2025-0840
Alpinev3.22, v3.23, v3.24binutils2.44-r0ALPINE-CVE-2025-0840
Azure Linux2binutils2.37-11AZL-56103
Azure Linux3binutils2.41-4AZL-56099
Alpaquita23binutils2.40-r3BELL-CVE-2025-0840
Alpaquitastreambinutils2.44-r0BELL-CVE-2025-0840
BellSoft Hardened Containers23binutils2.40-r3BELL-CVE-2025-0840
BellSoft Hardened Containersstreambinutils2.44-r0BELL-CVE-2025-0840

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10binutilsNot affected
Red Hat Enterprise Linux 10mingw-binutilsNot affected
Red Hat Enterprise Linux 6binutilsNot affected
Red Hat Enterprise Linux 7binutilsNot affected
Red Hat Enterprise Linux 7gdbNot affected
Red Hat Enterprise Linux 8binutilsNot affected
Red Hat Enterprise Linux 8gcc-toolset-13-binutilsNot affected
Red Hat Enterprise Linux 8gcc-toolset-13-gdbNot affected
Red Hat Enterprise Linux 8gcc-toolset-14-binutilsNot affected
Red Hat Enterprise Linux 8gcc-toolset-14-gdbNot affected
Red Hat Enterprise Linux 8gdbNot affected
Red Hat Enterprise Linux 8mingw-binutilsNot affected
Red Hat Enterprise Linux 9binutilsNot affected
Red Hat Enterprise Linux 9gcc-toolset-13-binutilsNot affected
Red Hat Enterprise Linux 9gcc-toolset-13-gdbNot affected
Red Hat Enterprise Linux 9gcc-toolset-14-binutilsNot affected
Red Hat Enterprise Linux 9gdbNot affected
Red Hat Enterprise Linux 9mingw-binutilsFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-0840.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON