All reports
Low

binutils: infinite recursion in next_is_type_qual and cplus_demangle_type functions in cp-demangle.c

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-18701

Probability of exploitation in the next 30 days: 1.69%

FIRST EPSS · 2026-11-22

Description

An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31. There is a stack consumption vulnerability resulting from infinite recursion in the functions next_is_type_qual() and cplus_demangle_type() in cp-demangle.c. Remote attackers could leverage this vulnerability to cause a denial-of-service via an ELF file, as demonstrated by nm.

A vulnerability was found in GNU Binutils caused by excessive stack consumption in the cp-demangle.c file within GNU libiberty, where an attacker could exploit this flaw by persuading a victim to open a specially crafted file, leading to stack exhaustion and causing the application to crash, resulting in a denial of service.