Critical Stack-Based Buffer Overflow in GNU Binutils - CVE-2025-0840

binutils Updated 02 Oct 2025

Summary

29/01/2025
N/A
Yes i
High
7.5

ALPINE-CVE-2025-0840: A vulnerability, which was classified as problematic, was found in GNU Binutils up to 2.43. Affects binutils versions < 2.40-r8. Fixed in 2.40-r8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

GNU Binutils is a collection of binary tools used for handling binary files, including object files, archives, and executable files. It provides essential functionality for developers, such as linking and assembling code. The package is widely used in various software development environments, making it crucial for maintaining software security. This vulnerability affects versions of Binutils up to 2.43, exposing systems to potential remote attacks.

Vulnerability Detail

A vulnerability classified as problematic was discovered in GNU Binutils up to version 2.43. The issue arises from the function disassemble_bytes in the file binutils/objdump.c, where improper handling of the argument 'buf' can lead to a stack-based buffer overflow. This vulnerability allows attackers to execute arbitrary code remotely, posing significant risks to system integrity and confidentiality. The complexity of exploiting this vulnerability is high, but the exploit has been publicly disclosed, increasing the urgency for remediation.

How To Fix

Minimum fixed version

2.40-r8

This is the first release that contains the fix.

sudo apk add --upgrade binutils

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds available to mitigate this vulnerability without upgrading the affected package. It is strongly recommended to apply the patch as soon as possible.

Conclusion

The vulnerability identified as CVE-2025-0840 poses a significant risk to systems using GNU Binutils versions up to 2.43. It is essential to upgrade to version 2.44 or later to mitigate the risk of remote code execution. Regular monitoring and prompt updates are vital for maintaining software security.

See every vulnerability recorded for binutils →

Share this vulnerability

FAQ

CVE-2025-0840 is a vulnerability in GNU Binutils that can lead to a stack-based buffer overflow, allowing remote code execution.

Versions of GNU Binutils up to 2.43 are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

While there are no specific workarounds, it is crucial to prioritize upgrading to the patched version as soon as possible to protect your systems.

Related vulnerabilities

Recent vulnerabilities recorded for binutils.

How To Fix

Minimum fixed version

2.40-r8

This is the first release that contains the fix.

sudo apk add --upgrade binutils

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback