binutils: Stack Exhaustion in the demangling functions provided by libiberty
Published Jun 22, 2018
5.5
MEDIUMCVSS 3.0
EPSS 2.00%
Description
An issue was discovered in arm_pt in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.30. Stack Exhaustion occurs in the C++ demangling functions provided by libiberty, and there are recursive stack frames: demangle_arm_hp_template, demangle_class_name, demangle_fund_type, do_type, do_arg, demangle_args, and demangle_nested_args. This can occur during execution of nm-new.
Affected products
No data.
No data.
Red Hat Ansible Tower 3.4 for RHEL 7
ansible-tower-34/ansible-tower-memcached:1.4.15-28
Fixed · RHBA-2020:0547
Red Hat Ansible Tower 3.4 for RHEL 7
ansible-tower-35/ansible-tower-memcached:1.4.15-28
Fixed · RHBA-2020:0547
Red Hat Ansible Tower 3.4 for RHEL 7
ansible-tower-37/ansible-tower-memcached-rhel7:1.4.15-28
Fixed · RHBA-2020:0547
Red Hat Enterprise Linux 7
binutils-0:2.27-41.base.el7
Fixed · RHSA-2019:2075
Red Hat Enterprise Linux 5
binutils
Will not fix
Red Hat Enterprise Linux 5
binutils220
Will not fix
Red Hat Enterprise Linux 6
binutils
Will not fix
Red Hat Enterprise Linux 8
binutils
Will not fix
Red Hat Enterprise Linux 8
mingw-binutils
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Tower 3.4 for RHEL 7 | ansible-tower-34/ansible-tower-memcached:1.4.15-28 | Fixed | RHBA-2020:0547 |
| Red Hat Ansible Tower 3.4 for RHEL 7 | ansible-tower-35/ansible-tower-memcached:1.4.15-28 | Fixed | RHBA-2020:0547 |
| Red Hat Ansible Tower 3.4 for RHEL 7 | ansible-tower-37/ansible-tower-memcached-rhel7:1.4.15-28 | Fixed | RHBA-2020:0547 |
| Red Hat Enterprise Linux 7 | binutils-0:2.27-41.base.el7 | Fixed | RHSA-2019:2075 |
| 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 6 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | binutils | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | mingw-binutils | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
The issue is classified as low severity primarily because binutils is not typically exposed to untrusted inputs in most environments, limiting its exploitation potential. The stack overflow in demangle_class_name() only triggers during the parsing of malformed ELF files, which would require an attacker to convince a user to process a malicious file with binutils. Moreover, binutils does not handle privileged operations, meaning exploitation is unlikely to lead to system compromise or escalation of privileges. Additionally, the impact is localized to the application itself, without affecting the broader system or network security.
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
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
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
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (21 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.00% (0.01996) | 79.95th | v5 (v2026.06.15) |
| Sep 22, 2026 | 2.00% (0.01996) | 79.81th | v5 (v2026.06.15) |
| Sep 21, 2026 | 3.33% (0.03331) | 88.09th | v5 (v2026.06.15) |
| Sep 6, 2026 | 2.00% (0.01996) | 79.38th | v5 (v2026.06.15) |
| Sep 5, 2026 | 3.47% (0.03466) | 88.28th | v5 (v2026.06.15) |
| Aug 30, 2026 | 2.08% (0.02077) | 80.14th | v5 (v2026.06.15) |
| Aug 28, 2026 | 3.47% (0.03466) | 88.22th | v5 (v2026.06.15) |
| Aug 24, 2026 | 2.08% (0.02077) | 80.03th | v5 (v2026.06.15) |
| Aug 23, 2026 | 3.47% (0.03466) | 88.16th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.08% (0.02077) | 78.96th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.53% (0.00529) | 64.54th | v4 (v2025.03.14) |
| Mar 29, 2025 | 1.92% (0.01923) | 72.39th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.53% (0.00529) | 65.20th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.33% (0.00330) | 71.90th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.33% (0.00330) | 70.22th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.33% (0.00330) | 67.35th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.28% (0.00277) | 63.17th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.72% (0.01719) | 76.18th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.72% (0.01719) | 53.33th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.89% (0.02888) | 63.67th | v5 (v2026.06.15) |
| Apr 14, 2021 | 2.89% (0.02888) | 0.00th | v1 |
References (11)
- https://access.redhat.com/errata/RHSA-2019:2075 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2018-12641 Vendor Advisory
- https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1763099 x_refsource_MISCThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1594410 Issue Tracking
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85452 x_refsource_MISCIssue TrackingVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-12641
- https://security.gentoo.org/glsa/201908-01 vendor-advisoryx_refsource_GENTOO
- https://sourceware.org/bugzilla/show_bug.cgi?id=23058 x_refsource_MISCExploitIssue TrackingThird Party Advisory
- https://usn.ubuntu.com/4326-1/ vendor-advisoryx_refsource_UBUNTU
- https://usn.ubuntu.com/4336-1/ vendor-advisoryx_refsource_UBUNTU
- https://www.cve.org/CVERecord?id=CVE-2018-12641
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2019:2075 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2018-12641 | Vendor Advisory | |
| https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1763099 | x_refsource_MISCThird Party Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1594410 | Issue Tracking | |
| https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85452 | x_refsource_MISCIssue TrackingVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-12641 | ||
| https://security.gentoo.org/glsa/201908-01 | vendor-advisoryx_refsource_GENTOO | |
| https://sourceware.org/bugzilla/show_bug.cgi?id=23058 | x_refsource_MISCExploitIssue TrackingThird Party Advisory | |
| https://usn.ubuntu.com/4326-1/ | vendor-advisoryx_refsource_UBUNTU | |
| https://usn.ubuntu.com/4336-1/ | vendor-advisoryx_refsource_UBUNTU | |
| https://www.cve.org/CVERecord?id=CVE-2018-12641 |
Change history (0)
No recorded changes yet.