Bug 1126688

Summary: gcc: memory corruption issues in libstdc++ C++ regex library
Product: [Other] Security Response Reporter: Murray McAllister <mmcallis>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: drieden, jakub, law, lkocman, mfranc, mpolacek, nobody+bgollahe
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-21 16:45:12 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: 1126692    
Bug Blocks: 1126694    

Description Murray McAllister 2014-08-05 05:37:01 UTC
Maksymilian Arciemowicz reported memory corruption issues in the libstdc++ C++ regex library. If an attacker were able to make an application using this library process a specially-crafted regular expression, it could cause the application to crash or, potentially, execute arbitrary code.

Original report:

http://seclists.org/fulldisclosure/2014/Aug/1

Upstream bug:

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

Currently on Fedora, this requires compiling the affected program with the experimental ISO C++ 2011 support by using the "-std=c++11" option.

Comment 1 Murray McAllister 2014-08-05 05:39:50 UTC
Created gcc tracking bugs for this issue:

Affects: fedora-all [bug 1126692]

Comment 2 Murray McAllister 2014-08-05 05:51:14 UTC
CVE request: http://www.openwall.com/lists/oss-security/2014/08/05/4

Comment 3 Murray McAllister 2014-08-07 07:55:25 UTC
As pointed out by Rich Felker, this is not a flaw in the "ISO C++ 2011 regex library" specification, but rather a GCC/libstdc++ bug:

http://www.openwall.com/lists/oss-security/2014/08/05/11