It was found that when opening a zip stream, php_stream_zip_opener fails to check the path_len that is vulnerable to integer overflow. It is later used to calculate the length of mempcy that can lead to buffer overflow and memory corruption. Upstream bug: https://bugs.php.net/bug.php?id=72520 Upstream patch: http://git.php.net/?p=php-src.git;a=commit;h=81406c0c1d45f75fcc7972ed974d2597abb0b9e9 CVE assignment: http://seclists.org/oss-sec/2016/q3/137
Created php tracking bugs for this issue: Affects: fedora-all [bug 1359837]
The affected function has to be used in a very specific way. It's unlikely that this function is used in a way that lends it to exploitation. Compile time buffer overflow protection should mitigate this problem, preventing exploitation to gain code execution. Thus, this should be limited to a crash only.
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