Name | CVE-2016-5116 |
Description | gd_xbm.c in the GD Graphics Library (aka libgd) before 2.2.0, as used in certain custom PHP 5.5.x configurations, allows context-dependent attackers to obtain sensitive information from process memory or cause a denial of service (stack-based buffer under-read and application crash) via a long name. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-3619-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
libgd2 (PTS) | jessie, jessie (lts) | 2.1.0-5+deb8u15 | fixed |
| stretch (security) | 2.2.4-2+deb9u4 | fixed |
| stretch (lts), stretch | 2.2.4-2+deb9u6 | fixed |
| buster (security), buster, buster (lts) | 2.2.5-5.2+deb10u1 | fixed |
| bullseye | 2.3.0-2 | fixed |
| bookworm | 2.3.3-9 | fixed |
| sid, trixie | 2.3.3-12 | fixed |
php5 (PTS) | jessie, jessie (lts) | 5.6.40+dfsg-0+deb8u21 | vulnerable |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
libgd2 | source | wheezy | (not affected) | | | |
libgd2 | source | jessie | 2.1.0-5+deb8u4 | | DSA-3619-1 | |
libgd2 | source | (unstable) | 2.2.1-1 | | | |
php5 | source | (unstable) | (unfixed) | unimportant | | |
Notes
[wheezy] - libgd2 <not-affected> (Vulnerable code not present)
Fixed by: https://github.com/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4 (gd-2.2.0)
Introduced by: https://github.com/libgd/libgd/commit/decf4407d41230fc54dea8058bf887a2696fd4c2 (gd-2.1.0-alpha1)
https://github.com/libgd/libgd/issues/211
PHP bug: https://bugs.php.net/bug.php?id=72115
Starting with 5.4.0-1 Debian uses the system copy of libgd
https://www.openwall.com/lists/oss-security/2016/05/29/3