Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1332860 - (CVE-2016-4537, CVE-2016-4538) CVE-2016-4537 CVE-2016-4538 php: bcpowmod accepts negative scale causing heap buffer overflow corrupting _one_ definition
CVE-2016-4537 CVE-2016-4538 php: bcpowmod accepts negative scale causing heap...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20160424,reported=2...
: Security
Depends On: 1332882
Blocks: 1332879
  Show dependency treegraph
 
Reported: 2016-05-04 04:49 EDT by Adam Mariš
Modified: 2016-11-15 09:31 EST (History)
14 users (show)

See Also:
Fixed In Version: php 5.5.35, php 5.6.21, php 7.0.6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-13 06:36:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2750 normal SHIPPED_LIVE Moderate: rh-php56 security, bug fix, and enhancement update 2016-11-15 11:40:02 EST

  None (edit)
Description Adam Mariš 2016-05-04 04:49:38 EDT
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
Comment 1 Adam Mariš 2016-05-04 05:25:41 EDT
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1332882]
Comment 2 Andrej Nemec 2016-05-06 02:50:34 EDT
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."
Comment 3 Fedora Update System 2016-05-07 07:47:45 EDT
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.
Comment 4 Fedora Update System 2016-05-12 03:22:48 EDT
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.
Comment 5 Tomas Hoger 2016-06-13 06:36:34 EDT
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.
Comment 6 errata-xmlrpc 2016-11-15 06:51:39 EST
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

Note You need to log in before you can comment on or make changes to this bug.