The XSLTProcessor class misses a few checks on the input from the libxslt library. The valuePop() function call is able to return NULL pointer and php does not check that. Upstream report: https://bugs.php.net/bug.php?id=69782 Upstream patch: http://git.php.net/?p=php-src.git;a=commit;h=1744be2d17befc69bf00033993f4081852a747d6
Created php tracking bugs for this issue: Affects: fedora-all [bug 1260712]
CVE assignment: http://seclists.org/oss-sec/2015/q3/524
php-5.6.13-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
php-5.6.13-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
php-5.6.13-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
This issue is triggered by a specially-crafted / malicious Extensible Stylesheet Language (XSL). Additionally, it requires XSLTProcessor to allow the use of PHP functions as XSLT functions (see XSLTProcessor::registerPHPFunctions). The use of untrusted XSLTs has its own security concerns even without the ability to call PHP functions and without this flaw - they may allow DoS, XSS, or file content disclosure attacks. When unrestricted use of PHP functions is allowed, this flaw should not be assume to cross any trust boundary. As this flaw triggers NULL pointer dereference, its impact is limited to crash of the PHP interpreter. When PHP is used with httpd using mod_php, crash may only impact attacker's own request (when using prefork mpm, which is still the default in Red Hat Enterprise Linux) or requests of several other uses (when using worker or event mpm). In Red Hat Enterprise Linux and Fedora, the affected xsl extension is packaged in a separate sub-package php-xml. Systems without the php-xml installed can not be affected by this issue. Note that this actually triggers a bug in libxml2 library that was fixed upstream in version 2.9.2 using this commit: https://git.gnome.org/browse/libxml2/commit/?id=03c6723043775122313f107695066e5744189a08 PHP was correctly assuming that libxml2's valuePop() should not return NULL. Statement: Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
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 Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS Red Hat Software Collections for Red Hat Enterprise Linux 6 Via RHSA-2016:0457 https://rhn.redhat.com/errata/RHSA-2016-0457.html