Bug 601901 (CVE-2010-2191, MOPS-2010-049, MOPS-2010-050, MOPS-2010-051, MOPS-2010-052, MOPS-2010-053, MOPS-2010-054, MOPS-2010-055)

Summary: CVE-2010-2191 php: multiple interruption vulnerabilities (MOPS-2010-0[49,50,51,52,53,54,55])
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-28 09:54:42 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:
Attachments:
Description Flags
MOPS-2010-049 reproducer
none
MOPS-2010-050 reproducer
none
MOPS-2010-051 reproducer
none
MOPS-2010-052 reproducer
none
MOPS-2010-053 reproducer
none
MOPS-2010-054 reproducer
none
MOPS-2010-055 reproducer none

Description Vincent Danen 2010-06-08 20:36:45 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2010-2191 to
the following vulnerability:

The (1) parse_str, (2) preg_match, (3) unpack, and (4) pack functions;
the (5) ZEND_FETCH_RW, (6) ZEND_CONCAT, and (7) ZEND_ASSIGN_CONCAT
opcodes; and the (8) ArrayObject::uasort method in PHP 5.2 through
5.2.13 and 5.3 through 5.3.2 allow context-dependent attackers to
obtain sensitive information (memory contents) or trigger memory
corruption by causing a userspace interruption of an internal function
or handler.  NOTE: vectors 2 through 4 are related to the call time
pass by reference feature.

References:
http://www.php-security.org/2010/05/31/mops-2010-049-php-parse_str-interruption-memory-corruption-vulnerability/index.html
http://www.php-security.org/2010/05/31/mops-2010-050-php-preg_match-interruption-information-leak-vulnerability/index.html
http://www.php-security.org/2010/05/31/mops-2010-051-php-unpack-interruption-information-leak-vulnerability/index.html
http://www.php-security.org/2010/05/31/mops-2010-052-php-pack-interruption-information-leak-vulnerability/index.html
http://www.php-security.org/2010/05/31/mops-2010-053-php-zend_fetch_rw-opcode-interruption-information-leak-vulnerability/index.html
http://www.php-security.org/2010/05/31/mops-2010-054-php-zend_concatzend_assign_concat-opcode-interruption-information-leak-and-memory-corruption-vulnerability/index.html
http://www.php-security.org/2010/05/31/mops-2010-055-php-arrayobjectuasort-interruption-memory-corruption-vulnerability/index.html

Comment 1 Tomas Hoger 2010-07-28 07:11:18 UTC
Created attachment 434935 [details]
MOPS-2010-049 reproducer

Upstream fix:
  http://svn.php.net/viewvc?view=revision&revision=299281

Comment 2 Tomas Hoger 2010-07-28 08:34:29 UTC
Created attachment 434949 [details]
MOPS-2010-050 reproducer

Comment 3 Tomas Hoger 2010-07-28 08:34:52 UTC
Created attachment 434950 [details]
MOPS-2010-051 reproducer

Comment 4 Tomas Hoger 2010-07-28 08:38:06 UTC
Created attachment 434952 [details]
MOPS-2010-052 reproducer

Upstream fix:
  http://svn.php.net/viewvc?view=revision&revision=299279

Comment 5 Tomas Hoger 2010-07-28 09:32:45 UTC
Created attachment 434958 [details]
MOPS-2010-053 reproducer

This reproducer crashes PHP 5.3.3.

Comment 6 Tomas Hoger 2010-07-28 09:51:31 UTC
Created attachment 434966 [details]
MOPS-2010-054 reproducer

Comment 7 Tomas Hoger 2010-07-28 09:52:15 UTC
Created attachment 434968 [details]
MOPS-2010-055 reproducer

Upstream fix included in 5.3.3:
  http://svn.php.net/viewvc?view=revision&revision=299327

Comment 8 Tomas Hoger 2010-07-28 09:54:42 UTC
More info on the impact of the interruption vulnerabilities - bug #617578,
comment #3.

*** This bug has been marked as a duplicate of bug 169857 ***

Comment 9 Tomas Hoger 2010-07-28 09:54:58 UTC
Statement:

Red Hat does not consider interruption issues allowing safe_mode / open_basedir
restriction bypass to be security sensitive.  For more details see
https://bugzilla.redhat.com/show_bug.cgi?id=169857#c1 and
http://www.php.net/security-note.php