Critical Stack-Based Buffer Overflow in GNU Binutils - CVE-2025-0840
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for binutils.