Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-12641
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 04:33 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-12641
Complete source record
{
"id": "3d51c903f35f51e92d7d6cd120a41113fc67f6eb731f996eeefb3096b06a1977",
"url": "https://osv.dev/vulnerability/CVE-2018-12641",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-12641",
"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.",
"evidence": "osv:CVE-2018-12641",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-12641",
"aliases": [
"CVE-2018-12641"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://sourceware.org/git/binutils-gdb.git",
"type": "GIT",
"events": [
{
"introduced": "8db5daf9efe8a6174d3b10ac7bba8c178836e9ce"
},
{
"last_affected": "8db5daf9efe8a6174d3b10ac7bba8c178836e9ce"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gnu:binutils:2.30:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.30"
},
{
"last_affected": "2.30"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"2.30",
"binutils-2_30"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12641.json"
}
}
],
"modified": "2026-10-24T10:30:20.088491214Z",
"provider": "osv",
"references": [
"https://usn.ubuntu.com/4326-1/",
"https://usn.ubuntu.com/4336-1/",
"https://access.redhat.com/errata/RHSA-2019:2075",
"https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1763099",
"https://security.gentoo.org/glsa/201908-01",
"https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85452",
"https://sourceware.org/bugzilla/show_bug.cgi?id=23058"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-12641",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 430178,
"published_at": "2018-06-22T12:29:00.21+00:00"
}