It was found that bcpowmod accepts negative scale causing heap buffer overflow, which corrupts _one_ definition. Upstream bug: https://bugs.php.net/bug.php?id=72093 Upstream patch: https://git.php.net/?p=php-src.git;a=commit;h=ed52bcb3dcb2e7dbc009ef8c6579fb1276ca73c1
Created php tracking bugs for this issue: Affects: fedora-all [bug 1332882]
As per CVE assignment: http://seclists.org/oss-sec/2016/q2/259 Use CVE-2016-4537 for "bcpowmod accepting negative scale." Use CVE-2016-4538 for "_one_ definition being overridden by scale adjustment."
php-5.6.21-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
php-5.6.21-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
Issue is triggered by a negative $scale, which is not likely to come from an untrusted source, making this hard to trigger other way than by a malicious script. This issue is in the bcmath extension. In Red Hat products, this extension is packaged separately in php-bcmath sub-RPM. Systems without that package installed can not be affected by this issue.
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