Bug 1360322 (CVE-2016-6288)

Summary: CVE-2016-6288 php: Buffer over-read in php_url_parse_ex
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, dmcphers, fedora, hhorak, jialiu, jokerman, jorton, kseifried, lmeyer, mmccomas, rcollet, tiwillia, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 5.5.38, php 5.6.15 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-26 18:13:20 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:    
Bug Blocks: 1359830    

Description Adam Mariš 2016-07-26 12:29:42 UTC
An out-of-bounds read in php_url_parse_ex() was found that allows to cause DoS by triggering segmentation fault.

Upstream bug:

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

Upstream patch:

https://git.php.net/?p=php-src.git;a=commit;h=e1ba58f068f4bfc8ced75bb017cd31d8beddf3c2

Comment 1 Adam Mariš 2016-07-26 12:30:02 UTC
Fedora 24, package php, is not vulnerable because it currently has php-5.6.22-1.fc24 in stable

Comment 2 errata-xmlrpc 2016-11-15 11:44:37 UTC
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

Comment 3 Remi Collet 2016-12-09 08:40:12 UTC
Notice that the fix for this issue introduce a behavior change in parse_url function which may break some code or extension (ex pecl/ssh2) relying on some characters to be allowed in host part (e.g. spaces)