Out-of-bounds read in libgd - CVE-2016-6906

 

Out-of-bounds read in libgd - CVE-2016-6906

Published: March 15, 2017 / Updated: July 28, 2020


Vulnerability identifier: #VU32119
CSH Severity: Low
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-6906
CWE-ID: CWE-125
Exploitation vector: Local access
Exploit availability: No public exploit available

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

libgd
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

Install update from vendor's website.

libgd - update to 2.2.4
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

External References

Related Security Bulletins