Skip to content
OpenAdvisories
Unscored CVE-2016-4491 EUVD-2016-5478GHSA-7r8p-jc9c-3r5f

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 Feb 24, 2017 · Updated Aug 6, 2024 · Assigned by mitre

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 binutils 2.28-3 —
Debian 14 libiberty 20170627-1 —
Debian 13 binutils 2.28-3 —
Debian 13 libiberty 20170627-1 —
Debian 12 binutils 2.28-3 —
Debian 12 libiberty 20170627-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 gcc-h8300-hms +1 No fix yet —
Ubuntu 26.04 LTS gcc-h8300-hms +1 No fix yet —
Ubuntu 25.10 gcc-h8300-hms +1 No fix yet —
Ubuntu 24.04 LTS gcc-h8300-hms +1 No fix yet —
Ubuntu 22.04 LTS nescc +2 No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS nescc +2 No fix yet —
Ubuntu 18.04 LTS sdcc +4 No fix yet —
Ubuntu 16.04 LTS gdb 7.11.1-0ubuntu1~16.5 USN-3367-1
Ubuntu 16.04 LTS ht +6 No fix yet —
Ubuntu 16.04 LTS libiberty 20160215-1ubuntu0.2 USN-3368-1
Ubuntu 16.04 LTS valgrind 1:3.11.0-1ubuntu4.2 USN-3337-1
Ubuntu 14.04 LTS gdb 7.7.1-0ubuntu5~14.04.3 USN-3367-1
Ubuntu 14.04 LTS libiberty 20131116-1ubuntu0.2 USN-3368-1
Ubuntu 14.04 LTS valgrind 1:3.10.1-1ubuntu3~14.5 USN-3337-1
Ubuntu Pro 16.04 LTS binutils 2.26.1-1ubuntu1~16.04.8+esm1 USN-4336-2
Ubuntu Pro 14.04 LTS binutils No fix yet —

Advisories 4

References