CVE-2018-9996
published 2018-04-10CVE-2018-9996: An issue was discovered in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.30. Stack Exhaustion occurs in the C++ demangling functions provided…
PriorityP419medium5.5CVSS 3.0
AVLACLPRNUIRSUCNINAH
EPSS
1.29%
68.1th percentile
An issue was discovered 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_template_value_parm, demangle_integral_value, and demangle_expression.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | binutils | — | — |
| gnu | binutils | — | — |
CVSS provenance
nvdv3.05.5MEDIUMCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv5.5MEDIUM
vendor_debian5.5LOW
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
binutils: Stack-overflow in libiberty/cplus-dem.c causes crash
vendor_redhat·2018-04-09·CVSS 5.5
CVE-2018-9996 [MEDIUM] CWE-400 binutils: Stack-overflow in libiberty/cplus-dem.c causes crash
binutils: Stack-overflow in libiberty/cplus-dem.c causes crash
An issue was discovered 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_template_value_parm, demangle_integral_value, and demangle_expression.
Statement: Red Hat Product Security determined that this flaw was not a security vulnerability. See the Bugzilla link for more details.
Package: binutils (Red Hat Enterprise Linux 5) - Not affected
Package: binutils220 (Red Hat Enterprise Linux 5) - Not affected
Package: binutils (Red Hat Enterprise Linux 6) - Not affected
Package: binutils (Red Hat Enterprise Linux 7) - Not affected
Package: binutils (Red Hat Enterprise Linux 8) - Not
Debian
CVE-2018-9996: binutils - An issue was discovered in cplus-dem.c in GNU libiberty, as distributed in GNU B...
vendor_debian·2018·CVSS 5.5
CVE-2018-9996 [MEDIUM] CVE-2018-9996: binutils - An issue was discovered in cplus-dem.c in GNU libiberty, as distributed in GNU B...
An issue was discovered 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_template_value_parm, demangle_integral_value, and demangle_expression.
Scope: local
bookworm: open
bullseye: open
forky: open
sid: open
trixie: open
GHSA
GHSA-g8cr-hg2h-9wfr: An issue was discovered in cplus-dem
ghsa_unreviewed·2022-05-13
CVE-2018-9996 [MEDIUM] CWE-674 GHSA-g8cr-hg2h-9wfr: An issue was discovered in cplus-dem
An issue was discovered 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_template_value_parm, demangle_integral_value, and demangle_expression.
OSV
CVE-2018-9996: An issue was discovered in cplus-dem
osv·2018-04-10·CVSS 5.5
CVE-2018-9996 [MEDIUM] CVE-2018-9996: An issue was discovered in cplus-dem
An issue was discovered 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_template_value_parm, demangle_integral_value, and demangle_expression.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-9996 mingw-binutils: binutils: Stack-overflow in libiberty/cplus-dem.c causes crash [fedora-all]
bugzilla·2018-04-13·CVSS 5.5
CVE-2018-9996 [MEDIUM] CVE-2018-9996 mingw-binutils: binutils: Stack-overflow in libiberty/cplus-dem.c causes crash [fedora-all]
CVE-2018-9996 mingw-binutils: binutils: Stack-overflow in libiberty/cplus-dem.c causes crash [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects
Bugzilla
CVE-2018-9996 mingw-binutils: binutils: Stack-overflow in libiberty/cplus-dem.c causes crash [epel-all]
bugzilla·2018-04-13·CVSS 5.5
CVE-2018-9996 [MEDIUM] CVE-2018-9996 mingw-binutils: binutils: Stack-overflow in libiberty/cplus-dem.c causes crash [epel-all]
CVE-2018-9996 mingw-binutils: binutils: Stack-overflow in libiberty/cplus-dem.c causes crash [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects mul
Bugzilla
CVE-2018-9996 binutils: Stack-overflow in libiberty/cplus-dem.c causes crash [fedora-all]
bugzilla·2018-04-13·CVSS 5.5
CVE-2018-9996 [MEDIUM] CVE-2018-9996 binutils: Stack-overflow in libiberty/cplus-dem.c causes crash [fedora-all]
CVE-2018-9996 binutils: Stack-overflow in libiberty/cplus-dem.c causes crash [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple suppor
Bugzilla
CVE-2018-9996 binutils: Stack-overflow in libiberty/cplus-dem.c causes crash
bugzilla·2018-04-13·CVSS 5.5
CVE-2018-9996 [MEDIUM] CVE-2018-9996 binutils: Stack-overflow in libiberty/cplus-dem.c causes crash
CVE-2018-9996 binutils: Stack-overflow in libiberty/cplus-dem.c causes crash
GNU Binutils through version 2.30 is vulnerable to a stack-overflow in the libiberty/cplus-dem.c demangling functions demangle_template_value_parm, demangle_integral_value, and demangle_expression. An attacker could exploit this to cause a crash via a crafted file.
Upstream Bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85304
Discussion:
Created binutils tracking bugs for this issue:
Affects: fedora-all [bug 1566792]
Created mingw-binutils tracking bugs for this issue:
Affects: fedora-all [bug 1566790]
Affects: epel-all [bug 1566789]
---
Tested in RHEL 7 and 6 but c++filt didn't crash with the provided PoC. It may be because without sanitizer it is necessary less stack per recursion level. In any ca
2018-04-10
Published