Buffer Overflow Vulnerability in Libiberty Affecting GCC
CVE-2016-4491
5.5MEDIUM
What is CVE-2016-4491?
The d_print_comp function in cp-demangle.c from the Libiberty library within the GNU Compiler Collection is susceptible to a denial of service attack due to a critical flaw. Attackers can exploit this vulnerability by supplying a specially crafted binary, which may lead to infinite recursion and a buffer overflow. This can force the application to crash, resulting in a segmentation fault. The issue arises when a node incorrectly references itself as an ancestor multiple times, causing an unfavorable condition during the demangling process.