Out-of-bounds read in libgd - CVE-2016-6132
Published: August 12, 2016 / Updated: July 28, 2020
Vulnerability identifier: #VU32248
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-6132
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to perform a denial of service (DoS) attack.
The gdImageCreateFromTgaCtx function in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.
Affected software
libgd
Gentoo Linux
Debian Linux
Ubuntu
Fedora
gd (Alpine package)
libgd3 (Ubuntu package)
libgd2 (Debian package)
gd
Gentoo Linux
Debian Linux
Ubuntu
Fedora
gd (Alpine package)
libgd3 (Ubuntu package)
libgd2 (Debian package)
gd
How to mitigate CVE-2016-6132
Install update from vendor's website.
libgd - update to 2.2.3
gd (Alpine package) - update to 2.2.3-r0
libgd3 (Ubuntu package) - addressed in versions 2.1.0-3ubuntu0.3, 2.1.1-4ubuntu0.16.04.3
libgd2 (Debian package) - update to 2.1.0-5+deb8u4
gd - update to 2.2.3-1.fc24
gd (Alpine package) - update to 2.2.3-r0
libgd3 (Ubuntu package) - addressed in versions 2.1.0-3ubuntu0.3, 2.1.1-4ubuntu0.16.04.3
libgd2 (Debian package) - update to 2.1.0-5+deb8u4
gd - update to 2.2.3-1.fc24
External References
- http://lists.opensuse.org/opensuse-updates/2016-08/msg00086.html
- http://lists.opensuse.org/opensuse-updates/2016-09/msg00078.html
- http://www.debian.org/security/2016/dsa-3619
- http://www.openwall.com/lists/oss-security/2016/06/30/10
- http://www.openwall.com/lists/oss-security/2016/06/30/6
- http://www.securityfocus.com/bid/91520
- http://www.ubuntu.com/usn/USN-3060-1
- https://github.com/libgd/libgd/issues/247
- https://libgd.github.io/release-2.2.3.html
- https://security.gentoo.org/glsa/201612-09