Bug 1295385 (CVE-2016-1283) - CVE-2016-1283 pcre: heap buffer overflow in handling of duplicate named groups (8.39/14)
Summary: CVE-2016-1283 pcre: heap buffer overflow in handling of duplicate named group...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2016-1283
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: 1295386 1330490 1330491 1330494
Blocks: 1295388
TreeView+ depends on / blocked
 
Reported: 2016-01-04 10:06 UTC by Adam Mariš
Modified: 2019-09-29 13:41 UTC (History)
11 users (show)

Fixed In Version: pcre 8.39
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-26 12:03:56 UTC


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1132 normal SHIPPED_LIVE Important: rh-mariadb100-mariadb security update 2016-05-26 12:35:06 UTC

Description Adam Mariš 2016-01-04 10:06:59 UTC
It was found that pcre_compile2 function in pcre_compile.c in PCRE 8.38 mishandles the 
/((?:F?+(?:^(?(R)a+\"){99}-))(?J)(?'R'(?'R'<((?'RR'(?'R'\){97)?J)?J)(?'R'(?'R'\){99|(:(?|(?'R')(\k'R')|((?'R')))H'R'R)(H'R))))))/
pattern and related patterns with named subgroups, which allows remote attackers to cause a denial of service via heap-based buffer overflow.

Upstream bug:

https://bugs.exim.org/show_bug.cgi?id=1767

Comment 1 Adam Mariš 2016-01-04 10:07:40 UTC
Created pcre tracking bugs for this issue:

Affects: fedora-all [bug 1295386]

Comment 2 Tomas Hoger 2016-02-17 16:50:27 UTC
As noted in the upstream bug, I would reduce the pattern triggering the issue down to:

  /((?J)(?'R'(?'R'(?'R'(?'R'(?'R'(?|(\k'R'))))))))/

This issue was introduced in version 8.34, which refactored named group handling code and apparently several bugs were introduced in the process.

Comment 3 Tomas Hoger 2016-02-29 09:15:02 UTC
Upstream fix:

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

Comment 4 Fedora Update System 2016-03-02 01:50:09 UTC
pcre-8.38-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2016-03-16 01:49:57 UTC
pcre-8.38-3.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 errata-xmlrpc 2016-05-26 08:42:49 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


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