Bug 1287614 (CVE-2015-8383) - CVE-2015-8383 pcre: Buffer overflow caused by repeated conditional group (8.38/3)
Summary: CVE-2015-8383 pcre: Buffer overflow caused by repeated conditional group (8.3...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2015-8383
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1287615 1287616 1287617 1287619 1330455 1330456
Blocks: 1287727
TreeView+ depends on / blocked
 
Reported: 2015-12-02 13:05 UTC by Adam Mariš
Modified: 2021-09-09 11:44 UTC (History)
36 users (show)

Fixed In Version: pcre 8.38
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-15 13:36:29 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1132 0 normal SHIPPED_LIVE Important: rh-mariadb100-mariadb security update 2016-05-26 12:35:06 UTC
Red Hat Product Errata RHSA-2016:2750 0 normal SHIPPED_LIVE Moderate: rh-php56 security, bug fix, and enhancement update 2016-11-15 16:40:02 UTC

Description Adam Mariš 2015-12-02 13:05:25 UTC
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 13:06:15 UTC
Created pcre tracking bugs for this issue:

Affects: fedora-all [bug 1287615]

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

Affects: fedora-all [bug 1287617]

Comment 3 Adam Mariš 2015-12-02 13:06:33 UTC
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 14:24:25 UTC
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 14:28:49 UTC
Fixed with pcre-8.38-1.fc23 in F23 on 2015-11-26.

Comment 6 Adam Mariš 2015-12-02 15:22:36 UTC
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 19:53:57 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 8 Tomas Hoger 2016-02-17 09:24:51 UTC
(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 09:26:30 UTC
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 08:41:28 UTC
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 11:47:36 UTC
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.