Bug 1177734 (CVE-2014-9425)

Summary: CVE-2014-9425 php: Double-free in zend_ts_hash_graceful_destroy()
Product: [Other] Security Response Reporter: Huzaifa S. Sidhpurwala <huzaifas>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: fedora, jorton, jrusnack, rcollet, vkaigoro, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 5.5.21, php 5.6.5 Doc Type: Bug Fix
Doc Text:
A double free flaw was found in zend_ts_hash_graceful_destroy() function in the PHP ZTS module. This flaw could possibly cause a PHP application to crash.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-09 21:42:28 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: 1178728, 1204762, 1204763    
Bug Blocks: 1177738, 1210213    

Description Huzaifa S. Sidhpurwala 2014-12-30 07:07:07 UTC
A double-free flaw was found in PHP in the zend_ts_hash_graceful_destroy() function. This issue affects all versions of PHP. Initial investigations suggests that it may not be exploitable and can only result in a crash.

References:

Upstream bug: https://bugs.php.net/bug.php?id=68676

Commits:
http://git.php.net/?p=php-src.git;a=commit;h=2bcf69d073190e4f032d883f3416dea1b027a39e
http://git.php.net/?p=php-src.git;a=commit;h=24125f0f26f3787c006e4a51611ba33ee3b841cb
http://git.php.net/?p=php-src.git;a=commit;h=fbf3a6bc1abcc8a5b5226b0ad9464c37f11ddbd6

Comment 1 Remi Collet 2014-12-30 10:25:20 UTC
As this code is ZTS specific, it only affects ZTS enabled build.
(in RHEL, only php/rhel-6 have ZTS build, provided as experimental)

Comment 2 Vasyl Kaigorodov 2015-01-05 11:40:59 UTC
(In reply to Remi Collet from comment #1)
> As this code is ZTS specific, it only affects ZTS enabled build.
> (in RHEL, only php/rhel-6 have ZTS build, provided as experimental)

And what about Fedora builds, are these ZTS enabled too?

Comment 3 Remi Collet 2015-01-05 11:43:38 UTC
(In reply to Vasyl Kaigorodov from comment #2)

> And what about Fedora builds, are these ZTS enabled too?

Yes, Fedora build have ZTS.

Comment 4 Vasyl Kaigorodov 2015-01-05 12:15:13 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1178728]

Comment 5 Huzaifa S. Sidhpurwala 2015-01-07 05:44:50 UTC
Statement:

This issue did not affect the versions of php and php53 as shipped with Red Hat Enterprise Linux 5, and the versions of php as shipped with Red Hat Enterprise Linux 7.

Comment 6 Tomas Hoger 2015-03-25 14:00:48 UTC
Fixed upstream in PHP 5.6.5 and 5.5.21:

http://php.net/ChangeLog-5.php#5.5.21
http://php.net/ChangeLog-5.php#5.6.5

Comment 9 errata-xmlrpc 2015-07-09 17:02:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2015:1218 https://rhn.redhat.com/errata/RHSA-2015-1218.html