Bug 1652723 (CVE-2018-17985)

Summary: CVE-2018-17985 binutils: Stack consumption problem caused by the cplus_demangle_type
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
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, psampaio, 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:21:05 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, 1650647, 1652724, 1652725, 1654030, 1654031    
Bug Blocks: 1647427    

Description Pedro Sampaio 2018-11-22 17:36:06 UTC
An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31. There is a stack consumption problem caused by the cplus_demangle_type function making recursive calls to itself in certain scenarios involving many 'P' characters.

References:

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

Comment 1 Pedro Sampaio 2018-11-22 17:36:46 UTC
Created binutils tracking bugs for this issue:

Affects: fedora-all [bug 1652725]


Created mingw-binutils tracking bugs for this issue:

Affects: epel-all [bug 1652724]

Comment 4 Scott Gayou 2018-11-29 19:55:17 UTC
This looks like yet another duplicated stack exhaustion flaw in libiberty.