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.
Created pcre tracking bugs for this issue: Affects: fedora-all [bug 1287615]
Created glib2 tracking bugs for this issue: Affects: fedora-all [bug 1287617]
Created mingw-pcre tracking bugs for this issue: Affects: fedora-all [bug 1287616] Affects: epel-7 [bug 1287619]
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.
Fixed with pcre-8.38-1.fc23 in F23 on 2015-11-26.
Corresponds to item 3 under 8.38 in http://vcs.pcre.org/pcre/code/trunk/ChangeLog?view=markup
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.
(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
This was introduced in version 8.34, which refactored named group handling code and apparently several bugs were introduced in the process.
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
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