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 1351603 - (CVE-2016-6128) CVE-2016-6128 gd: Invalid color index not properly handled
CVE-2016-6128 gd: Invalid color index not properly handled
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
impact=low,public=20160627,reported=2...
: Reopened, Security
Depends On: 1351604 1370014
Blocks: 1351605
  Show dependency treegraph
 
Reported: 2016-06-30 08:19 EDT by Adam Mariš
Modified: 2016-11-15 09:46 EST (History)
20 users (show)

See Also:
Fixed In Version: php 5.6.25, php 7.0.10
Doc Type: If docs needed, set a value
Doc Text:
It was found that libgd did not properly handle invalid color indexes in GD files. An attacker who could submit a crafted GD file for conversion could cause applications using libgd to crash, leading to denial of service.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-08-25 00:20:55 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-06-30 08:19:05 EDT
It was found that libgd did not properly handle invalid color index, which could lead to a denial of service against applications using the libgd library.

Upstream patches:

https://github.com/libgd/libgd/compare/3fe0a7128bac5000fdcfab888bd2a75ec0c9447d...fd623025505e87bba7ec8555eeb72dae4fb0afd

CVE assignment:

http://seclists.org/oss-sec/2016/q2/627
Comment 1 Adam Mariš 2016-06-30 08:19:33 EDT
Created gd tracking bugs for this issue:

Affects: fedora-all [bug 1351604]
Comment 2 Doran Moppert 2016-07-06 00:49:05 EDT
The functionality affected by this flaw was introduced after gd-2.0.35, which is the latest version packaged in RHEL.
Comment 5 Doran Moppert 2016-07-07 01:05:49 EDT
The impact of this flaw is limited by gd_security.c:  specifying an out of
range colour will cause out-of-bounds reads in gdImageCropThreshold, which can
lead to an attempt to crop the image to an invalid size.  Bounds checks in
gdImageCrop* functions ensure that no OOB data is copied into the final image,
and overflow2() prevents allocations from failing due to overflow/negative
sizes.

Maximum impact is a crash, but CVSS needs to reflect AV:N.
Comment 8 Doran Moppert 2016-08-25 00:16:17 EDT
Statement:

Red Hat Product Security has rated this issue as having Low security
impact. This issue is not currently planned to be addressed in future
updates. For additional information, refer to the Issue Severity
Classification: https://access.redhat.com/security/updates/classification/.
Comment 9 Doran Moppert 2016-08-25 00:17:50 EDT
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1370014]
Comment 10 errata-xmlrpc 2016-11-15 06:42:27 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.