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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87681 Exploit, Issue Tracking, Vendor Advisory
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87681 Exploit, Issue Tracking, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 5.5 · gnuNVD modified 2026-10-15 18:17
Affected (CPE criteria) 1
cpe:2.3:a:gnu:binutils:2.31:*:*:*:*:*:*:*
References 6
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87681 Exploit, Issue Tracking, Vendor Advisory
- https://usn.ubuntu.com/4326-1/
- https://usn.ubuntu.com/4336-1/
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87681 Exploit, Issue Tracking, Vendor Advisory
- https://usn.ubuntu.com/4326-1/
- https://usn.ubuntu.com/4336-1/