Bug 1340433 (CVE-2013-7456)

Summary: CVE-2013-7456 gd: incorrect boundary adjustment in _gdContributionsCalc
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, dmcphers, fedora, hhorak, jialiu, jmlich83, jokerman, jorton, kseifried, lmeyer, mmccomas, mskalick, rcollet, tiwillia, varekova, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gd 2.1.1, php 5.5.36, php 5.6.22, php 7.0.7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-08 11:58:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: Embargoed1339953    

Description Adam Mariš 2016-05-27 11:49:02 UTC
An out-of-bounds read in imagescale function was found that can cause crash of application.

Upstream bug (php):

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

Upstream patch:

libgd: https://github.com/libgd/libgd/commit/4f65a3e4eedaffa1efcf9ee1eb08f0b504fbc31a
php: https://git.php.net/?p=php-src.git;a=commit;h=7a1aac3343af85b4af4df5f8844946eaa27394ab

CVE assignment:

http://seclists.org/oss-sec/2016/q2/412

Comment 1 Tomas Hoger 2016-06-06 20:07:34 UTC
imagescale() function was only introduced in PHP 5.5, hence older are not affected.

Comment 2 Tomas Hoger 2016-06-08 11:58:32 UTC
This is a limited 8 byte (sizeof(double)) buffer over-read.  In standard non-ASAN builds, it's very unlikely to cause crash.  This does not have any real practical impact.

Comment 3 errata-xmlrpc 2016-11-15 11:53:25 UTC
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