Bug 1646529 (CVE-2018-18701)

Summary: CVE-2018-18701 binutils: infinite recursion in next_is_type_qual and cplus_demangle_type functions in cp-demangle.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, dbaker, dvlasenk, erik-fedora, fweimer, jakub, jokerman, kanderso, klember, mcermak, mnewsome, mpolacek, nickc, ohudlick, rjones, sthangav, trankin, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 22:20:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1645967, 1645968, 1646530, 1646531, 1646532, 1646533, 1650647, 1654030, 1654031    
Bug Blocks: 1647427    

Description Laura Pardo 2018-11-05 16:07:08 UTC
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. 


References:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87675

Comment 1 Laura Pardo 2018-11-05 16:08:58 UTC
Created binutils tracking bugs for this issue:

Affects: fedora-all [bug 1646530]


Created mingw-binutils tracking bugs for this issue:

Affects: epel-all [bug 1646531]

Comment 3 Scott Gayou 2018-11-27 21:56:16 UTC
Potentially a dupe of CVE-2018-18484, or at least the same root cause.