Bug 1287614 - (CVE-2015-8383) CVE-2015-8383 pcre: Buffer overflow caused by repeated conditional group (8.38/3)
CVE-2015-8383 pcre: Buffer overflow caused by repeated conditional group (8.3...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20151123,repo...
: Security
Depends On: 1287615 1287616 1287617 1287619 1330455 1330456
Blocks: 1287727
  Show dependency treegraph
 
Reported: 2015-12-02 08:05 EST by Adam Mariš
Modified: 2016-11-15 08:36 EST (History)
35 users (show)

See Also:
Fixed In Version: pcre 8.38
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-15 08:36:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2015-12-02 08:05:25 EST
It was found that PCRE before 8.38 mishandles certain repeated conditional groups whose condition was referenced by name if there was more than one group with the given name, which allows remote attackers to cause a denial of service (buffer overflow) or possibly have unspecified other impact via a crafted regular expression.
Comment 1 Adam Mariš 2015-12-02 08:06:15 EST
Created pcre tracking bugs for this issue:

Affects: fedora-all [bug 1287615]
Comment 2 Adam Mariš 2015-12-02 08:06:24 EST
Created glib2 tracking bugs for this issue:

Affects: fedora-all [bug 1287617]
Comment 3 Adam Mariš 2015-12-02 08:06:33 EST
Created mingw-pcre tracking bugs for this issue:

Affects: fedora-all [bug 1287616]
Affects: epel-7 [bug 1287619]
Comment 4 Petr Pisar 2015-12-02 09:24:25 EST
Fixed by upstream in 8.38 version with:

commit 67286d4e31be9cdeef981955efbdf6ec9da53f42
Author: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
Date:   Fri May 8 16:39:40 2015 +0000

    Fix buffer overflow for repeated conditional when referencing a duplicate na
me.
    
    
    git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1557 2f5784b3-3f2a-0410-8824-
cb99058d5e15

Reproducer: Pass /(((?(R)){0,2}) (?''((?'R')((?'R')))))/J pattern to pcretest under valgrind.
Comment 5 Petr Pisar 2015-12-02 09:28:49 EST
Fixed with pcre-8.38-1.fc23 in F23 on 2015-11-26.
Comment 6 Adam Mariš 2015-12-02 10:22:36 EST
Corresponds to item 3 under 8.38 in http://vcs.pcre.org/pcre/code/trunk/ChangeLog?view=markup
Comment 7 Fedora Update System 2016-01-04 14:53:57 EST
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 8 Tomas Hoger 2016-02-17 04:24:51 EST
(In reply to Petr Pisar from comment #4)
> Fixed by upstream in 8.38 version with:
> 
> commit 67286d4e31be9cdeef981955efbdf6ec9da53f42
> Author: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
> Date:   Fri May 8 16:39:40 2015 +0000
> 
> Fix buffer overflow for repeated conditional when referencing a
> duplicate name.

That upstream commit is:

http://vcs.pcre.org/pcre?view=revision&revision=1557
Comment 9 Tomas Hoger 2016-02-17 04:26:30 EST
This was introduced in version 8.34, which refactored named group handling code and apparently several bugs were introduced in the process.
Comment 11 errata-xmlrpc 2016-05-26 04:41:28 EDT
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS

Via RHSA-2016:1132 https://access.redhat.com/errata/RHSA-2016:1132
Comment 12 errata-xmlrpc 2016-11-15 06:47:36 EST
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS

Via RHSA-2016:2750 https://rhn.redhat.com/errata/RHSA-2016-2750.html

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