CVE-2016-4491
Medium · 5.5CVSS
5.5
EPSS
1.8%
Published
Feb 24, 2017
CISA due date
—
Cloudanix analysis
A bug in code that reads certain program files can make the program crash when it encounters a specially prepared file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Infinite recursion in d_print_comp during symbol demangling of a specially crafted binary node structure triggers stack exhaustion and buffer overflow, resulting in segmentation fault.
Why it matters to the business
Applications processing untrusted binaries for symbol information may crash, causing temporary service disruption; the issue affects a small number of downstream packages and has shown negligible exploitation activity over many years.
How an attack unfolds
An attacker supplies a malicious binary containing a demangling node that references itself multiple times; when a vulnerable application invokes the parser on this input, the recursion loop exhausts stack memory and crashes the process.
How to fix it
Upgrade affected Bitnami WordPress Multisite installations to version 4.1.41 or 6.5.5; rebuild or replace any custom builds that statically link the vulnerable libiberty component.
How to confirm the fix worked
Confirm the installed libiberty or Bitnami package version meets or exceeds the listed fixed releases; attempt to process a test binary containing recursive ancestor nodes and verify absence of crash.
Typical attack path
- Craft a binary file embedding a self-referential ancestor node in its symbol table
- Deliver the file to a target system running vulnerable libiberty code
- Trigger processing of the binary via local execution or user-assisted opening
- Observe segmentation fault and denial of service
How to detect it
Review system and application logs for segmentation faults originating from symbol demangling routines; correlate crash reports containing repeated ancestor references in stack traces.
What your security team should do
- Apply the specified Bitnami package upgrades immediately on any remaining unpatched instances
- Scan build pipelines and containers for static linking of pre-2017 libiberty versions
- Monitor EPSS and KEV status quarterly given the long publication age and stable low exploit probability
The record
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."
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | binutils | 0 | 2.28-3 |
| Debian:10 | libiberty | 0 | 20170627-1 |
| Debian:11 | binutils | 0 | 2.28-3 |
| Debian:11 | libiberty | 0 | 20170627-1 |
| Debian:12 | binutils | 0 | 2.28-3 |
| Debian:12 | libiberty | 0 | 20170627-1 |
| Debian:13 | binutils | 0 | 2.28-3 |
| Debian:13 | libiberty | 0 | 20170627-1 |
| Mageia:5 | gdb | 0 | 7.8.1-7.1.mga5 |
| Mageia:5 | valgrind | 0 | 3.10.1-2.1.mga5 |
| Mageia:6 | gdb | 0 | 7.12-16.1.mga6 |
| Ubuntu:14.04:LTS | gdb | 0 | 7.7.1-0ubuntu5~14.04.3 |
| Ubuntu:14.04:LTS | libiberty | 0 | 20131116-1ubuntu0.2 |
| Ubuntu:14.04:LTS | valgrind | 0 | 1:3.10.1-1ubuntu3~14.5 |
| Ubuntu:16.04:LTS | binutils-h8300-hms | 0 | No fix |
| Ubuntu:16.04:LTS | gcc-arm-none-eabi | 0 | No fix |
| Ubuntu:16.04:LTS | gcc-h8300-hms | 0 | No fix |
| Ubuntu:16.04:LTS | gccxml | 0 | No fix |
| Ubuntu:16.04:LTS | gdb | 0 | 7.11.1-0ubuntu1~16.5 |
| Ubuntu:16.04:LTS | ht | 0 | No fix |
| Ubuntu:16.04:LTS | libiberty | 0 | 20160215-1ubuntu0.2 |
| Ubuntu:16.04:LTS | nescc | 0 | No fix |
| Ubuntu:16.04:LTS | sdcc | 0 | No fix |
| Ubuntu:16.04:LTS | valgrind | 0 | 1:3.11.0-1ubuntu4.2 |
| Ubuntu:18.04:LTS | binutils-h8300-hms | 0 | No fix |
| Ubuntu:18.04:LTS | gcc-arm-none-eabi | 0 | No fix |
| Ubuntu:18.04:LTS | gcc-h8300-hms | 0 | No fix |
| Ubuntu:18.04:LTS | nescc | 0 | No fix |
| Ubuntu:18.04:LTS | sdcc | 0 | No fix |
| Ubuntu:20.04:LTS | binutils-h8300-hms | 0 | No fix |
| Ubuntu:20.04:LTS | gcc-h8300-hms | 0 | No fix |
| Ubuntu:20.04:LTS | nescc | 0 | No fix |
| Ubuntu:22.04:LTS | binutils-h8300-hms | 0 | No fix |
| Ubuntu:22.04:LTS | gcc-h8300-hms | 0 | No fix |
| Ubuntu:22.04:LTS | nescc | 0 | No fix |
| Ubuntu:24.04:LTS | binutils-h8300-hms | 0 | No fix |
| Ubuntu:24.04:LTS | gcc-h8300-hms | 0 | No fix |
| Ubuntu:24.10 | binutils-h8300-hms | 0 | No fix |
| Ubuntu:24.10 | gcc-h8300-hms | 0 | No fix |
| Ubuntu:25.04 | binutils-h8300-hms | 0 | No fix |
| Ubuntu:25.04 | gcc-h8300-hms | 0 | No fix |
| Ubuntu:25.10 | binutils-h8300-hms | 0 | No fix |
| Ubuntu:25.10 | gcc-h8300-hms | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | binutils | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | binutils | 0 | 2.26.1-1ubuntu1~16.04.8+esm1 |
| Ubuntu:Pro:16.04:LTS | binutils-h8300-hms | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | gcc-arm-none-eabi | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | gcc-h8300-hms | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | gccxml | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ht | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | nescc | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | sdcc | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | binutils-h8300-hms | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | gcc-arm-none-eabi | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | gcc-h8300-hms | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | nescc | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | sdcc | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | binutils-h8300-hms | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | gcc-h8300-hms | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | nescc | 0 | No fix |
Related vulnerabilities
- CVE-2021-3826 Heap/stack buffer overflow in the dlang_lname function in d-demangle.c in libiberty… Also affects binutils
- CVE-2022-38533 In GNU Binutils before 2.40, there is a heap-buffer-overflow in the error function… Also affects binutils
- CVE-2017-17122 The dump_relocs_in_section function in objdump.c in GNU Binutils 2.29.1 does not check… Also affects binutils
- CVE-2017-17123 The coff_slurp_reloc_table function in coffcode.h in the Binary File Descriptor (BFD)… Also affects binutils
- CVE-2017-17124 The _bfd_coff_read_string_table function in coffgen.c in the Binary File Descriptor (BFD)… Also affects binutils
- CVE-2017-17125 nm.c and objdump.c in GNU Binutils 2.29.1 mishandle certain global symbols, which allows… Also affects binutils
- CVE-2017-17126 The load_debug_section function in readelf.c in GNU Binutils 2.29.1 allows remote… Also affects binutils
- CVE-2017-17121 The Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils… Also affects binutils