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 1332454 - (CVE-2016-4343) CVE-2016-4343 php: Uninitialized pointer in phar_make_dirstream()
CVE-2016-4343 php: Uninitialized pointer in phar_make_dirstream()
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20160110,repor...
: Security
Depends On: 1332455
Blocks: 1305564
  Show dependency treegraph
 
Reported: 2016-05-03 05:01 EDT by Adam Mariš
Modified: 2016-11-15 09:31 EST (History)
15 users (show)

See Also:
Fixed In Version: php 5.6.18, php 7.0.3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-10-12 08:58:50 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-2016:2750 normal SHIPPED_LIVE Moderate: rh-php56 security, bug fix, and enhancement update 2016-11-15 11:40:02 EST

  None (edit)
Description Adam Mariš 2016-05-03 05:01:53 EDT
A missing variable initialization in phar_make_dirstream() and not properly checking return values when parsing malicious .tar file allows an attacker, that could control stack frame at the moment before calling zend_hash_get_current_key_ex(), to take over variables str_key and key_len and could cause a DoS or has other impact.

Upstream bug:

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

Upstream patch:

http://git.php.net/?p=php-src.git;a=commitdiff;h=9649ca1630433473a307d015ba1a79a4a7a779f5

CVE assignment:

http://seclists.org/oss-sec/2016/q2/163
Comment 1 Adam Mariš 2016-05-03 05:02:31 EDT
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1332455]
Comment 3 Tomas Hoger 2016-10-12 08:58:50 EDT
This issue is triggered by a specially-crafted Tar format Phar files.  Phar files are distribution format for PHP applications (similar to Java Jar format) and their content is typically executed on the server.  Malicious Phar archive can therefore execute code on the system without exploiting any parsing issues.

If Phar extension is not used, it can be disabled by commenting out the following line:

  extension=phar.so

in /etc/php.d/phar.ini to prevent loading of the extension.
Comment 4 errata-xmlrpc 2016-11-15 06:51:30 EST
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

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