Out-of-bounds read in libgd - CVE-2016-6906
Published: March 15, 2017 / Updated: July 28, 2020
Vulnerability details
The vulnerability allows a local non-authenticated attacker to perform a denial of service (DoS) attack.
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.
Affected software
Debian Linux
Ubuntu
gd (Alpine package)
libgd2-noxpm (Ubuntu package)
libgd2-xpm (Ubuntu package)
libgd3 (Ubuntu package)
libgd2 (Debian package)
How to mitigate CVE-2016-6906
gd (Alpine package) - update to 2.2.4-r0
libgd2-noxpm (Ubuntu package) - update to 2.0.36~rc1~dfsg-6ubuntu2.4
libgd2-xpm (Ubuntu package) - update to 2.0.36~rc1~dfsg-6ubuntu2.4
libgd3 (Ubuntu package) - addressed in versions 2.1.0-3ubuntu0.6, 2.1.1-4ubuntu0.16.04.6, 2.2.1-1ubuntu3.3
libgd2 (Debian package) - update to 2.1.0-5+deb8u9