Stack Exhaustion Vulnerability in GNU Binutils and Libiberty

binutils Updated 03 Oct 2025

Summary

30/03/2018
N/A
No i
Medium
5.5

UBUNTU-CVE-2018-9138: An issue was discovered in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.29 and 2.30. Affects binutils versions 2.23.52.20130913-0ubuntu1 – 2.24-5ubuntu3.1. No fix is published. 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 essential for managing binary files, including object files, archives, and executable files. It provides functionalities such as linking, assembling, and disassembling. The libiberty library, included in Binutils, offers utilities for demangling C++ symbols. This vulnerability affects versions 2.29 and 2.30, where recursive stack frames in demangling functions can lead to stack exhaustion, potentially causing application crashes.

Vulnerability Detail

An issue was discovered in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.29 and 2.30. The vulnerability arises from stack exhaustion in the C++ demangling functions, specifically in the recursive functions demangle_nested_args, demangle_args, do_arg, and do_type. This can lead to a denial of service, as the application may crash due to excessive stack usage. The CVSS score for this vulnerability is 5.5, indicating a medium severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can limit the input to the demangling functions to prevent excessive recursion. However, this is not a permanent solution and updating the packages is recommended.

Conclusion

The stack exhaustion vulnerability in GNU Binutils and libiberty poses a risk of application crashes due to excessive stack usage in demangling functions. It is crucial to update to the patched versions of the affected packages to mitigate this risk.

See every vulnerability recorded for binutils →

Share this vulnerability

FAQ

The vulnerability can lead to stack exhaustion, causing applications that utilize the affected functions to crash.

Versions 2.29 and 2.30 of GNU Binutils are affected by this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If immediate updates are not possible, consider limiting the input to the demangling functions as a temporary workaround.

The CVSS score for this vulnerability is 5.5, indicating a medium severity level.

Related vulnerabilities

Recent vulnerabilities recorded for binutils.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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