Heap Buffer Overflow Vulnerability in Binutils: CVE-2022-38533

binutils Updated 02 Oct 2025

Summary

26/08/2022
N/A
Yes i
Medium
5.5

UBUNTU-CVE-2022-38533: In GNU Binutils before 2.40, there is a heap-buffer-overflow in the error function bfd_getl32 when called from the strip_main function in strip-new via a crafted file. Affects binutils versions < 2.24-5ubuntu14.2+esm6. Fixed in 2.24-5ubuntu14.2+esm6. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Binutils is a collection of binary tools used for handling binary files, object files, and executable files. It provides essential functionalities for developers, including linking, assembling, and disassembling. The package is widely utilized in various Linux distributions, making it a critical component for software development and system operations. However, it is susceptible to vulnerabilities that can compromise system integrity and security.

Vulnerability Detail

In GNU Binutils before version 2.40, a heap-buffer-overflow vulnerability exists in the error function bfd_getl32 when invoked from the strip_main function in strip-new. This vulnerability can be exploited using a crafted file, potentially leading to arbitrary code execution or crashes, thereby compromising the system's security and stability.

How To Fix

Minimum fixed version

2.24-5ubuntu14.2+esm6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade binutils

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

Workaround

As a temporary workaround, avoid processing untrusted or crafted files with the Binutils tools until the package is updated to a secure version.

Conclusion

The CVE-2022-38533 vulnerability in Binutils poses a significant risk to systems using affected versions of the package. It is crucial to update to the patched versions to mitigate potential security threats. Users are encouraged to utilize tools like Vulert for ongoing monitoring of vulnerabilities in their applications.

See every vulnerability recorded for binutils →

Share this vulnerability

FAQ

CVE-2022-38533 is a vulnerability in GNU Binutils that allows for a heap buffer overflow, which can be exploited through crafted files.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.

Exploitation of this vulnerability can lead to arbitrary code execution, crashes, and potential unauthorized access to system resources.

Yes, patched versions of Binutils are available. Ensure your system is updated to one of the secure versions listed in the 'how to fix' section.

The CVSS score of CVE-2022-38533 is 5.5, indicating a medium severity level.

Related vulnerabilities

Recent vulnerabilities recorded for binutils.

How To Fix

Minimum fixed version

2.24-5ubuntu14.2+esm6

This is the first release that contains the fix.

sudo apt-get install --only-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