Use after free vulnerability was found in unserialize() function. We can create ZVAL and free it via Serializable::unserialize. However the unserialize() will still allow to use R: or r: to set references to that already freed memory. It is possible to use-after-free attack and execute arbitrary code remotely. Upstream bugs and patches: https://bugs.php.net/bug.php?id=70172 http://git.php.net/?p=php-src.git;a=commitdiff;h=e8429400d40e3c3aa4b22ba701991d698a2f3b2f https://bugs.php.net/bug.php?id=70366 http://git.php.net/?p=php-src.git;a=commitdiff;h=259057b2a484747a6c73ce54c4fa0f5acbd56179 https://bugs.php.net/bug.php?id=70365 http://git.php.net/?p=php-src.git;a=commitdiff;h=f06a069c462d37c2e009f6d1d93b8c8e7b713393
Created php tracking bugs for this issue: Affects: fedora-all [bug 1260662]
*** Bug 1260707 has been marked as a duplicate of this bug. ***
*** Bug 1260695 has been marked as a duplicate of this bug. ***
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 happens when untrusted input is unserialized. Doing so it documented as being unsafe: http://php.net/manual/en/function.unserialize.php Do not pass untrusted user input to unserialize(). Unserialization can result in code being loaded and executed due to object instantiation and autoloading, and a malicious user may be able to exploit this. Use a safe, standard data interchange format such as JSON (via json_decode() and json_encode()) if you need to pass serialized data to the user.
This issue did not affect PHP packages as shipped with Red Hat Enterprise Linux 6 and earlier. As this problem is triggered by unserializing untrusted inputs, which is documented as being unsafe, there is currently no plan to backport the fix to PHP packages as shipped with Red Hat Enterprise Linux 7 and Red Hat Software Collections. Future product updates may correct this issue if they rebase PHP packages to newer upstream version. Statement: This issue did not affect the versions of PHP as shipped with Red Hat Enterprise Linux 5 and 6. This issue is not currently planned to be corrected in future updates in Red Hat Enterprise Linux 7 and Red Hat Software Collections.
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