Bug 1336784 (CVE-2015-4116) - CVE-2015-4116 php: Use-after-free vulnerability in the spl_ptr_heap_insert function
Summary: CVE-2015-4116 php: Use-after-free vulnerability in the spl_ptr_heap_insert fu...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2015-4116
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1336786
TreeView+ depends on / blocked
 
Reported: 2016-05-17 12:46 UTC by Andrej Nemec
Modified: 2019-09-29 13:49 UTC (History)
13 users (show)

Fixed In Version: php 5.5.27, php 5.6.11
Clone Of:
Environment:
Last Closed: 2016-05-19 15:05:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2016-05-17 12:46:30 UTC
Use-after-free vulnerability in the spl_ptr_heap_insert function in
ext/spl/spl_heap.c in PHP before 5.5.27 and 5.6.x before 5.6.11 allows
remote attackers to execute arbitrary code by triggering a failed
SplMinHeap::compare operation.


Upstream bugs:

https://bugs.php.net/bug.php?id=69737
https://bugs.php.net/bug.php?id=69721

Upstream fix:

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

Comment 1 Tomas Hoger 2016-05-19 15:05:27 UTC
This flaw is triggered by a fatal error generated in SplMinHeap::compare.  To achieve that reporters created a PHP script which overrides compare method with a custom one that throws such error.  Triggering this without a malicious script is unlikely.  Upstream did not consider this to be a security issue - type of both upstream bug was changed form Security to Bug.  Reporters also assume local attack vector, which implies malicious script author.  PHP has never been safe against malicious scripts, and removal of the safe mode feature in PHP 5.4 acknowledges that:

http://php.net/manual/en/features.safe-mode.php

There is no plan to address this in Red Hat products.


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