# CVE-2016-4491: gdb: The d_print_comp function in cp-demangle.c in libiberty allows remoteattackers to cause a denial of service (segmenta...

CVE-2016-4491 is fixed in 6 products on 1 platform, first by gdb 8.0-0ubuntu3, released February 24, 2017. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2016-4491
- Priority: Routine
- CVSS: n/a (Low)
- EPSS: 0.0177
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 24, 2017

## Description

The d_print_comp function in cp-demangle.c in libiberty allows remoteattackers to cause a denial of service (segmentation fault and crash) via acrafted binary, which triggers infinite recursion and a buffer overflow,related to a node having "itself as ancestor more than once."

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | gdb Ubuntu 24.10 (oracular) | 8.0-0ubuntu3 | [gdb 8.0-0ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-gdb-8.0-0ubuntu3.md) | Feb 24, 2017 |
| Linux | gdb Ubuntu 25.04 (plucky) | 8.0-0ubuntu3 | [gdb 8.0-0ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-gdb-8.0-0ubuntu3.md) | Feb 24, 2017 |
| Linux | gdb-multiarch Ubuntu 24.10 (oracular) | 8.0-0ubuntu3 | [gdb-multiarch 8.0-0ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-gdb-multiarch-8.0-0ubuntu3.md) | Feb 24, 2017 |
| Linux | gdb-multiarch Ubuntu 25.04 (plucky) | 8.0-0ubuntu3 | [gdb-multiarch 8.0-0ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-gdb-multiarch-8.0-0ubuntu3.md) | Feb 24, 2017 |
| Linux | gdb-source Ubuntu 24.10 (oracular) | 8.0-0ubuntu3 | [gdb-source 8.0-0ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-gdb-source-8.0-0ubuntu3.md) | Feb 24, 2017 |
| Linux | gdb-source Ubuntu 25.04 (plucky) | 8.0-0ubuntu3 | [gdb-source 8.0-0ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-gdb-source-8.0-0ubuntu3.md) | Feb 24, 2017 |
| Linux | gdbserver Ubuntu 24.10 (oracular) | 8.0-0ubuntu3 | [gdbserver 8.0-0ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-gdbserver-8.0-0ubuntu3.md) | Feb 24, 2017 |
| Linux | gdbserver Ubuntu 25.04 (plucky) | 8.0-0ubuntu3 | [gdbserver 8.0-0ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-gdbserver-8.0-0ubuntu3.md) | Feb 24, 2017 |
| Linux | valgrind Ubuntu 24.10 (oracular) | 1:3.12.0-1.1ubuntu2 | [valgrind 1:3.12.0-1.1ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-valgrind-1-3.12.0-1.1ubuntu2.md) | Feb 24, 2017 |
| Linux | valgrind Ubuntu 25.04 (plucky) | 1:3.12.0-1.1ubuntu2 | [valgrind 1:3.12.0-1.1ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-valgrind-1-3.12.0-1.1ubuntu2.md) | Feb 24, 2017 |
| Linux | valgrind-mpi Ubuntu 24.10 (oracular) | 1:3.12.0-1.1ubuntu2 | [valgrind-mpi 1:3.12.0-1.1ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-valgrind-mpi-1-3.12.0-1.1ubuntu2.md) | Feb 24, 2017 |
| Linux | valgrind-mpi Ubuntu 25.04 (plucky) | 1:3.12.0-1.1ubuntu2 | [valgrind-mpi 1:3.12.0-1.1ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-valgrind-mpi-1-3.12.0-1.1ubuntu2.md) | Feb 24, 2017 |

---

Data as of 2026-11-07T06:34:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo
