REDHAT-BUG-384781: Double Free
From pcre changelog, version 6.7:
26. If a subpattern containing a named recursion or subroutine reference such as (?P>B) was quantified, for example (xxx(?P>B)){3}, the calculation of the space required for the compiled pattern went wrong and gave too small a value. Depending on the environment, this could lead to "Failed: internal error: code overflow at offset 49" or "glibc detected double free or corruption" errors.
Acknowledgements:
Red Hat would like to thank Ludwig Nussel for reporting this issue.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-384781?
The severity of REDHAT-BUG-384781 is classified as moderate due to the potential for denial of service through excessive memory use.
How do I fix REDHAT-BUG-384781?
To fix REDHAT-BUG-384781, you should upgrade to the latest version of PCRE that addresses this vulnerability.
What versions of PCRE are affected by REDHAT-BUG-384781?
REDHAT-BUG-384781 affects older versions of PCRE that include issues with named recursion in quantification.
Can REDHAT-BUG-384781 be exploited remotely?
Yes, REDHAT-BUG-384781 can be exploited remotely if an attacker is able to introduce malicious patterns into PCRE.
What should I do if I cannot upgrade to fix REDHAT-BUG-384781?
If you cannot upgrade, consider applying temporary mitigations such as restricting input patterns or traffic to vulnerable applications.