Bug 1652723 (CVE-2018-17985) - CVE-2018-17985 binutils: Stack consumption problem caused by the cplus_demangle_type
Summary: CVE-2018-17985 binutils: Stack consumption problem caused by the cplus_demang...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-17985
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1645967 1645968 1650647 1652724 1652725 1654030 1654031
Blocks: 1647427
TreeView+ depends on / blocked
 
Reported: 2018-11-22 17:36 UTC by Pedro Sampaio
Modified: 2021-10-25 22:21 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-25 22:21:05 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.