CVE-2018-17985

MEDIUM

GNU Binutils - Denial of Service via Recursive Type Demangling in cplus_demangle_type

Title source: llm
STIX 2.1

Description

An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31. There is a stack consumption problem caused by the cplus_demangle_type function making recursive calls to itself in certain scenarios involving many 'P' characters.

References (5)

Core 5
Core References
Issue Tracking, Third Party Advisory x_refsource_misc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87335
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/4326-1/
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/4336-1/

Scores

CVSS v3 5.5
EPSS 0.0017
EPSS Percentile 38.4%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Details

CWE
CWE-400
Status published
Products (1)
gnu/binutils 2.31
Published Oct 04, 2018
Tracked Since Feb 18, 2026