CVE-2018-12641 json
An issue was discovered in arm_pt in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.30.
published 2018-06-22 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-4597
- cvss
- 5.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.0%
- EPSS 2.0% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- binutils Ubuntu 18.04 LTS 2.30-21ubuntu1~18.04.3
- libiberty Ubuntu 16.04 LTS 20160215-1ubuntu0.3
- libiberty Ubuntu 18.04 LTS 20170913-1ubuntu0.1
- binutils Ubuntu Pro 16.04 LTS 2.26.1-1ubuntu1~16.04.8+esm1
ubuntu advisories UBUNTU-CVE-2018-12641
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- binutils RHEL 7 2.27-41.base.el7
red hat advisories RHSA-2019:2075
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-12641 updated cvss 3.3
binutils: Stack Exhaustion in the demangling functions provided by libiberty
-
Red Hat Enterprise Linux 5 binutils, binutils220 Red Hat Enterprise Linux 6 binutilsaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux 8 binutils, mingw-binutils, mingw32-binutils, mingw64-binutils, mingw-binutils-genericaffected: no fix available, no fix planned “Will not fix”
-
Red Hat Ansible Tower 3.4 for RHEL 7 Server ansible-tower-34/ansible-tower-memcached 1.4.15-28, ansible-tower-35/ansible-tower-memcached 1.4.15-28, ansible-tower-37/ansible-tower-memcached-rhel7 1.4.15-28fixed: vendor fix RHBA-2020:0547
-
Red Hat Enterprise Linux Client (v. 7) binutils 2.27-41.base.el7 Red Hat Enterprise Linux Client Optional (v. 7) binutils-devel 2.27-41.base.el7, binutils-debuginfo 2.27-41.base.el7 Red Hat Enterprise Linux ComputeNode (v. 7) binutils 2.27-41.base.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) binutils-devel 2.27-41.base.el7, binutils-debuginfo 2.27-41.base.el7 Red Hat Enterprise Linux Server (v. 7) binutils 2.27-41.base.el7 Red Hat Enterprise Linux Workstation (v. 7) binutils 2.27-41.base.el7fixed: vendor fix RHSA-2019:2075
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.97% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- sourceware.org https://sourceware.org/bugzilla/show_bug.cgi?id=23058 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
sourceware.org
/bugzilla/show_bug.cgi?id=23058
exploit, issue-tracking, third-party-advisory
-
security.gentoo.org
/glsa/201908-01
vendor-advisory
-
access.redhat.com
/errata/RHSA-2019:2075
vendor-advisory
-
usn.ubuntu.com
/4326-1/
vendor-advisory
-
usn.ubuntu.com
/4336-1/
vendor-advisory
-
gcc.gnu.org
/bugzilla/show_bug.cgi?id=85452
issue-tracking, vendor-advisory
-
bugs.launchpad.net
/ubuntu/+source/binutils/+bug/1763099
third-party-advisory
Sources
- CVE List CVE-2018-12641
- NVD CVE-2018-12641
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.