Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1391068 - (CVE-2016-8670) CVE-2016-8670 gd, php: Stack based buffer overflow in dynamicGetbuf
CVE-2016-8670 gd, php: Stack based buffer overflow in dynamicGetbuf
Status: CLOSED WONTFIX
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=20161010,repor...
: Security
Depends On: 1391076 1391077
Blocks: 1404738
  Show dependency treegraph
 
Reported: 2016-11-02 10:01 EDT by Adam Mariš
Modified: 2017-02-21 04:39 EST (History)
20 users (show)

See Also:
Fixed In Version: php 5.6.27, php 7.0.11, php 7.1.0
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in gd. Integer underflow in a calculation in dynamicGetbuf() was incorrectly handled, leading in some circumstances to an out of bounds write through a very large argument to memcpy(). An attacker could create a crafted image that would lead to a crash or, potentially, code execution.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-02-21 04:39:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2016-11-02 10:01:19 EDT
Stack based buffer overflow was found in dynamicGetbuf when passing negative `rlen` as size to memcpy().

PHP bug:

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

GD patch:

https://github.com/libgd/libgd/commit/53110871935244816bbb9d131da0bccff734bfe9

PHP patch:

https://git.php.net/?p=php-src.git;a=commit;h=cc08cbc84d46933c1e9e0149633f1ed5d19e45e9

CVE assignment:

http://www.openwall.com/lists/oss-security/2016/10/15/6
Comment 1 Adam Mariš 2016-11-02 10:11:05 EDT
Created gd tracking bugs for this issue:

Affects: fedora-all [bug 1391077]
Comment 2 Adam Mariš 2016-11-02 10:11:18 EDT
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1391076]

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