Bug 1287666 (CVE-2015-8390)

Summary: CVE-2015-8390 pcre: uninitialized memory read triggered by malformed posix character class (8.38/22)
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: adam.stokes, andrew, carnil, erik-fedora, jgrulich, jorton, lkundrak, mclasen, mmaslano, pmyers, ppisar, rcollet, rmeggins, sardella, slawomir, walters, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pcre 8.38 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-22 09:50:20 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: 1287667, 1287668, 1287669, 1287670    
Bug Blocks: 1287727    

Description Adam Mariš 2015-12-02 13:41:20 UTC
It was found that PCRE before 8.38 mishandles the [: and \\ substrings in character classes, which are incorrectly compiled and could cause reading from uninitialized memory or an incorrect error diagnosis, which allows remote attackers to cause a denial of service (uninitialized memory read) or possibly have unspecified other impact via a crafted regular expression.

Comment 1 Adam Mariš 2015-12-02 13:42:20 UTC
Created pcre tracking bugs for this issue:

Affects: fedora-all [bug 1287667]

Comment 2 Adam Mariš 2015-12-02 13:42:30 UTC
Created glib2 tracking bugs for this issue:

Affects: fedora-all [bug 1287669]

Comment 3 Adam Mariš 2015-12-02 13:42:37 UTC
Created mingw-pcre tracking bugs for this issue:

Affects: fedora-all [bug 1287668]
Affects: epel-7 [bug 1287670]

Comment 4 Adam Mariš 2015-12-02 15:24:11 UTC
Corresponds to item 22 in http://vcs.pcre.org/pcre/code/trunk/ChangeLog?view=markup

Comment 5 Petr Pisar 2015-12-02 16:05:00 UTC
Fixed in upstream with:

commit 084a8fe109a94f6d146c6a7a0e397cc3d40c6b67
Author: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
Date:   Mon Jul 20 16:27:31 2015 +0000

    Fix bug for classes containing \\ sequences.
    
    
    git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1578 2f5784b3-3f2a-0410-8824-
cb99058d5e15

Comment 6 Fedora Update System 2016-01-04 19:54:42 UTC
pcre-8.38-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Tomas Hoger 2016-02-22 09:50:20 UTC
(In reply to Petr Pisar from comment #5)
> Fixed in upstream with:
> 
> commit 084a8fe109a94f6d146c6a7a0e397cc3d40c6b67
> Author: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
> Date:   Mon Jul 20 16:27:31 2015 +0000
> 
> Fix bug for classes containing \\ sequences.

Upstream commit link:

http://vcs.pcre.org/pcre?view=revision&revision=1578

This is a bug, but it does not seem to have any practical security impact.