Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1377311 - (CVE-2016-7412) CVE-2016-7412 php: Heap overflow in mysqlnd when not receiving UNSIGNED_FLAG in BIT field
CVE-2016-7412 php: Heap overflow in mysqlnd when not receiving UNSIGNED_FLAG ...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20160530,repor...
: Security
Depends On: 1377366 1554899
Blocks: 1377365
  Show dependency treegraph
 
Reported: 2016-09-19 08:23 EDT by Adam Mariš
Modified: 2018-06-29 18:14 EDT (History)
14 users (show)

See Also:
Fixed In Version: php 5.6.26, php 7.0.11
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
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-2018:1296 None None None 2018-05-03 01:04 EDT

  None (edit)
Description Adam Mariš 2016-09-19 08:23:54 EDT
Heap overflow vulnerability was found in mysqlnd which can be triggered by malicious server or MITM by not supplementing UNSIGNED_FLAG in BIT field in php_mysqlnd_rowp_read_text_protocol_aux.

Upstream bug:

https://bugs.php.net/bug.php?id=72293

Upstream patch:

https://github.com/php/php-src/commit/28f80baf3c53e267c9ce46a2a0fadbb981585132?w=1

CVE assignment:

http://seclists.org/oss-sec/2016/q3/518
Comment 1 Adam Mariš 2016-09-19 09:37:17 EDT
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1377366]
Comment 2 Huzaifa S. Sidhpurwala 2016-10-12 05:19:11 EDT
Analysis:

You need a rogue mysql or a MITM attacker (who is impersonating as a mysql server) to set the correct bits, which causes the overflow on the php side.

PHP applications which use databases are usually designed in way, in which the location of the database server (mysql in this case) is hardcoded into the application. The database server is usually administered by the same organization responsible for the PHP application and is therefore assumed to be trusted.

Therefore for a typical PHP application, designed as mentioned above, the PHP code will need to be pointed to a rogue/MITM mysql server. This needs some kind of special privileges on the application (for example access to the admin site of the application) or another vulnerability in the affected application.

Based on the above, it non-realistic to exploit the above flaw in typical real life PHP applications.
Comment 6 errata-xmlrpc 2018-05-03 01:04:49 EDT
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.3 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS

Via RHSA-2018:1296 https://access.redhat.com/errata/RHSA-2018:1296

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