Bug 1646535 (CVE-2018-18700)

Summary: CVE-2018-18700 binutils: Recursive Stack Overflow within function d_name, d_encoding, and d_local_name 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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 22:20:22 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, 1646536, 1646537, 1646538, 1646539, 1650647, 1654030, 1654031    
Bug Blocks: 1647427    

Description Laura Pardo 2018-11-05 16:12:38 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 d_name(), d_encoding(), and d_local_name() 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=87681

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

Affects: fedora-all [bug 1646536]


Created mingw-binutils tracking bugs for this issue:

Affects: epel-all [bug 1646537]

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