Bug 1340856 (CVE-2016-5116) - CVE-2016-5116 gd: Information leak due to stack overflow in gdCtxPrintf
Summary: CVE-2016-5116 gd: Information leak due to stack overflow in gdCtxPrintf
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2016-5116
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1340857
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-30 12:34 UTC by Andrej Nemec
Modified: 2021-02-17 03:48 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-08 02:53:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2016-05-30 12:34:24 UTC
While creating an XBM image (imagexbm) with an user supplied name,
libgd isn't checking the vsnprintf return value and PHP 5.5 will trust
this length and read more memory than it should, causing a read-out-of
boundaries, leaking stack memory.

References:

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

External references:

https://github.com/libgd/libgd/issues/211

Upstream fix:

https://github.com/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4

Comment 1 Andrej Nemec 2016-05-30 12:35:48 UTC
Created gd tracking bugs for this issue:

Affects: fedora-all [bug 1340857]

Comment 2 Fedora Update System 2016-06-02 14:55:08 UTC
gd-2.1.1-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2016-06-17 15:50:29 UTC
gd-2.1.1-4.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.


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