Skip to content
Fencer Vulns
medium 5.5

CVE-2016-4491 json

The d_print_comp function in cp-demangle.c in libiberty allows remote attackers to cause a denial of service (segmentation fault and crash)…

published 2017-02-24 9 y ago modified 2026-06-17 4 mo ago also EUVD-2016-5478

cvss
5.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.8%
EPSS 1.8% chance of exploitation in 30 days, percentile 78%
public exploits
0
none known

Summary

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."

Patch / fix

  • binutils Debian 14, Debian 13, Debian 12 2.28-3
  • libiberty Debian 14, Debian 13, Debian 12 20170627-1

debian advisories DEBIAN-CVE-2016-4491

  • gdb Ubuntu 14.04 LTS 7.7.1-0ubuntu5~14.04.3
  • gdb Ubuntu 16.04 LTS 7.11.1-0ubuntu1~16.5
  • valgrind Ubuntu 14.04 LTS 1:3.10.1-1ubuntu3~14.5
  • valgrind Ubuntu 16.04 LTS 1:3.11.0-1ubuntu4.2
  • libiberty Ubuntu 14.04 LTS 20131116-1ubuntu0.2
  • libiberty Ubuntu 16.04 LTS 20160215-1ubuntu0.2
  • binutils Ubuntu Pro 16.04 LTS 2.26.1-1ubuntu1~16.04.8+esm1

ubuntu advisories UBUNTU-CVE-2016-4491

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2016-4491 updated cvss 0.0

gcc: Stack overflow due to infinite recursion in d_print_comp

  • Red Hat Enterprise Linux 5 gcc, gdb, gcc44, binutils, binutils220, compat-gcc-32, +3 more Red Hat Enterprise Linux 6 cpp, gcc, gdb, libgcc, libgcj, libitm, +26 more Red Hat Enterprise Linux 7 cpp, gcc, gdb, libgo, gcc-go, libgcc, +23 more
    affected: no fix planned “Will not fix”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.77% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 5.5 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.