gcc: Stack overflow due to infinite recursion in d_print_comp
Published Feb 24, 2017
5.5
MEDIUMCVSS 3.0
EPSS 1.78%
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."
Affected products
No data.
No data.
Red Hat Enterprise Linux 5
binutils
Will not fix
Red Hat Enterprise Linux 5
binutils220
Will not fix
Red Hat Enterprise Linux 5
compat-gcc-295
Will not fix
Red Hat Enterprise Linux 5
compat-gcc-296
Will not fix
Red Hat Enterprise Linux 5
compat-gcc-32
Will not fix
Red Hat Enterprise Linux 5
compat-gcc-34
Will not fix
Red Hat Enterprise Linux 5
gcc
Will not fix
Red Hat Enterprise Linux 5
gcc44
Will not fix
Red Hat Enterprise Linux 5
gdb
Will not fix
Red Hat Enterprise Linux 6
binutils
Will not fix
Red Hat Enterprise Linux 6
compat-gcc-295
Will not fix
Red Hat Enterprise Linux 6
compat-gcc-296
Will not fix
Red Hat Enterprise Linux 6
compat-gcc-32
Will not fix
Red Hat Enterprise Linux 6
compat-gcc-34
Will not fix
Red Hat Enterprise Linux 6
gcc
Will not fix
Red Hat Enterprise Linux 6
gdb
Will not fix
Red Hat Enterprise Linux 7
binutils
Will not fix
Red Hat Enterprise Linux 7
compat-gcc-32
Will not fix
Red Hat Enterprise Linux 7
compat-gcc-34
Will not fix
Red Hat Enterprise Linux 7
compat-gcc-44
Will not fix
Red Hat Enterprise Linux 7
gcc
Will not fix
Red Hat Enterprise Linux 7
gdb
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | binutils220 | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | compat-gcc-295 | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | compat-gcc-296 | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | compat-gcc-32 | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | compat-gcc-34 | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | gcc | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | gcc44 | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | gdb | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | compat-gcc-295 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | compat-gcc-296 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | compat-gcc-32 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | compat-gcc-34 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | gcc | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | gdb | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | compat-gcc-32 | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | compat-gcc-34 | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | compat-gcc-44 | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | gcc | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | gdb | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
AV:N/AC:M/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (18 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.78% (0.01780) | 77.45th | v5 (v2026.06.15) |
| Sep 22, 2026 | 1.78% (0.01780) | 77.28th | v5 (v2026.06.15) |
| Sep 21, 2026 | 3.09% (0.03087) | 87.09th | v5 (v2026.06.15) |
| Sep 6, 2026 | 1.78% (0.01780) | 76.78th | v5 (v2026.06.15) |
| Sep 5, 2026 | 3.09% (0.03087) | 86.81th | v5 (v2026.06.15) |
| Aug 30, 2026 | 1.78% (0.01780) | 76.67th | v5 (v2026.06.15) |
| Aug 28, 2026 | 3.09% (0.03087) | 86.73th | v5 (v2026.06.15) |
| Aug 24, 2026 | 1.78% (0.01780) | 76.54th | v5 (v2026.06.15) |
| Aug 23, 2026 | 3.09% (0.03087) | 86.67th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.78% (0.01780) | 75.30th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.24% (0.00243) | 45.67th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.35% (0.00351) | 72.71th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.35% (0.00351) | 71.08th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.35% (0.00350) | 67.31th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.21% (0.01213) | 66.61th | v2 (v2022.01.01) |
| Feb 17, 2023 | 1.21% (0.01213) | 66.22th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.21% (0.01213) | 64.21th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.21% (0.01213) | 40.54th | v2 (v2022.01.01) |
References (8)
- http://www.openwall.com/lists/oss-security/2016/05/05/5 mailing-listx_refsource_MLISTMailing ListPatchThird Party Advisory
- http://www.securityfocus.com/bid/90016 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2016-4491 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1333371 Issue Tracking
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 x_refsource_CONFIRMIssue Tracking
- https://gcc.gnu.org/ml/gcc-patches/2016-05/msg00105.html mailing-listx_refsource_MLISTPatchVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-4491
- https://www.cve.org/CVERecord?id=CVE-2016-4491
| Link | Providers | Tags |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2016/05/05/5 | mailing-listx_refsource_MLISTMailing ListPatchThird Party Advisory | |
| http://www.securityfocus.com/bid/90016 | vdb-entryx_refsource_BID | |
| https://access.redhat.com/security/cve/CVE-2016-4491 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1333371 | Issue Tracking | |
| https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 | x_refsource_CONFIRMIssue Tracking | |
| https://gcc.gnu.org/ml/gcc-patches/2016-05/msg00105.html | mailing-listx_refsource_MLISTPatchVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2016-4491 | ||
| https://www.cve.org/CVERecord?id=CVE-2016-4491 |
Change history (0)
No recorded changes yet.