CVE-2016-4491
publishedgcc: Stack overflow due to infinite recursion in d_print_comp
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Ubuntu | trusty | gdb | Advisory build | 7.7.1-0ubuntu5~14.04.3 | USN-3367-1 |
| Ubuntu | trusty | gdb-minimal | Advisory build | 7.7.1-0ubuntu5~14.04.3 | USN-3367-1 |
| Ubuntu | trusty | gdb-multiarch | Advisory build | 7.7.1-0ubuntu5~14.04.3 | USN-3367-1 |
| Ubuntu | trusty | gdb-source | Advisory build | 7.7.1-0ubuntu5~14.04.3 | USN-3367-1 |
| Ubuntu | trusty | gdb64 | Advisory build | 7.7.1-0ubuntu5~14.04.3 | USN-3367-1 |
| Ubuntu | trusty | gdbserver | Advisory build | 7.7.1-0ubuntu5~14.04.3 | USN-3367-1 |
| Ubuntu | trusty | libiberty | Advisory build | 20131116-1ubuntu0.2 | USN-3368-1 |
Show 31 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | trusty | libiberty-dev | Advisory build | 20131116-1ubuntu0.2 | USN-3368-1 |
| Ubuntu | trusty | valgrind | Advisory build | 1:3.10.1-1ubuntu3~14.5 | USN-3337-1 |
| Ubuntu | xenial | binutils | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-aarch64-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-alpha-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-arm-linux-gnueabi | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-arm-linux-gnueabihf | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-hppa-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-hppa64-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-m68k-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-mips-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-mips64-linux-gnuabi64 | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-mips64el-linux-gnuabi64 | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-mipsel-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-multiarch | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-powerpc-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-powerpc-linux-gnuspe | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-powerpc64-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-powerpc64le-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-s390x-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-sh4-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-source | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | binutils-sparc64-linux-gnu | Advisory build | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu | xenial | gdb | Advisory build | 7.11.1-0ubuntu1~16.5 | USN-3367-1 |
| Ubuntu | xenial | gdb-multiarch | Advisory build | 7.11.1-0ubuntu1~16.5 | USN-3367-1 |
| Ubuntu | xenial | gdb-source | Advisory build | 7.11.1-0ubuntu1~16.5 | USN-3367-1 |
| Ubuntu | xenial | gdb64 | Advisory build | 7.11.1-0ubuntu1~16.5 | USN-3367-1 |
| Ubuntu | xenial | gdbserver | Advisory build | 7.11.1-0ubuntu1~16.5 | USN-3367-1 |
| Ubuntu | xenial | libiberty | Advisory build | 20160215-1ubuntu0.2 | USN-3368-1 |
| Ubuntu | xenial | libiberty-dev | Advisory build | 20160215-1ubuntu0.2 | USN-3368-1 |
| Ubuntu | xenial | valgrind | Advisory build | 1:3.11.0-1ubuntu4.2 | USN-3337-1 |
Description
The d_print_comp function in cp-demangle.c in libiberty allows remote attackers to cause a denial of service (segmentation fault and crash) via a crafted binary, which triggers infinite recursion and a buffer overflow, related to a node having "itself as ancestor more than once."
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
4- [oss-security] 20160505 Re: CVE Request: No Demangling During Analysis of Untrusted Binaries http://www.openwall.com/lists/oss-security/2016/05/05/5
- 90016 http://www.securityfocus.com/bid/90016
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909
- [gcc-patches] 20160502 Fix for PR70909 in Libiberty Demangler (4) https://gcc.gnu.org/ml/gcc-patches/2016-05/msg00105.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 35501a6f42ec58cc48eea0b0bb4e366ead496085eae42a685ddbcf570a1f3bdc
- Ingested
- 23 Sep 2026, 07:41:21 UTC
- Source record
- Official CVE record