Red Hat Bugzilla – Bug 1285408
CVE-2015-2327 pcre: infinite recursion compiling pattern with zero-repeated groups that include recursive back reference (8.36/19)
Last modified: 2016-11-15 08:32:36 EST
A stack-based buffer overflow vulnerability was found in compile_regex(), triggered via crafted regular expression.
Upstream bug (contains reproducer):
Created pcre tracking bugs for this issue:
Affects: fedora-all [bug 1285409]
Upstream fixed it in 8.36 version. A reproducer is crash when compiling /(((a\2)|(a*)\g<-1>))*a?/BZ expression in pcretest tool.
This was fixed with pcre-8.35-4.fc21 in Fedora on 2014-07-14. No supported Fedora is affected now.
This is not a stack based buffer overflow, but stack overflow, caused by infinite recursion. The impact of this issue is limited to crash.
The problem was introduced upstream between version 8.00 and 8.01.
This has already been fixed with pcre-8.32-15.el7 as bug #1119356. RHEL-7.2 is not affected.
Ok, thank you for the correction. So the fix is included in pcre packages released via RHBA-2015:2142, which is part of Red Hat Enterprise Linux 7.2 update:
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