Bug 1315339 (CVE-2016-4344, CVE-2016-4345, CVE-2016-4346)

Summary: CVE-2016-4344 CVE-2016-4345 CVE-2016-4346 php: Multiple heap overflows due to integer overflows
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, dmcphers, fedora, jialiu, jokerman, jorton, kseifried, lmeyer, mmaslano, mmccomas, rcollet, tiwillia, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 7.0.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-13 18:22:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1315340    
Bug Blocks: 1315348    

Description Adam Mariš 2016-03-07 13:50:24 UTC
Multiple heap-based buffer overflow caused by integer overflows were found in xml_utf8_encode, zend_string_alloc and php_addcslashes functions.

Upstream bug:

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

Upstream patch:

http://git.php.net/?p=php-src.git;a=commit;h=57b997ebf99e0eb9a073e0dafd2ab100bd4a112d

Comment 1 Adam Mariš 2016-03-07 13:51:11 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1315340]

Comment 2 Andrej Nemec 2016-05-02 14:39:20 UTC
CVE assignments via:

http://seclists.org/oss-sec/2016/q2/163

CVE-2016-4344 is for the issue in:

ext/xml/xml.c

CVE-2016-4345 is for the issue in:

ext/filter/sanitizing_filters.c

CVE-2016-4346 is for the issue in:

ext/standard/string.c

Comment 3 Tomas Hoger 2016-06-13 18:22:27 UTC
PHP 7 only.  Additionally, these issue could only be triggered when PHP is configured to execute scripts with no or very high memory_limit.  That is not a typical configured, the default in PHP packages in Red Hat products is 128M.