Description
An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31. There is a stack consumption vulnerability resulting from infinite recursion in the functions d_name(), d_encoding(), and d_local_name() in cp-demangle.c. Remote attackers could leverage this vulnerability to cause a denial-of-service via an ELF file, as demonstrated by nm.
References (3)
Core 3
Core References
Exploit, Issue Tracking, Vendor Advisory x_refsource_misc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87681
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.0063
EPSS Percentile
70.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-835
Status
published
Products (1)
gnu/binutils
2.31
Published
Oct 29, 2018
Tracked Since
Feb 18, 2026