Fixed bug (Integer Overflow in gd2GetHeader() resulting in heap overflow). (CVE-2016-5766)
It was found that libgd did not properly handle invalid color index, which could lead to a denial of service against applications using the libgd library.
Upstream patches:
https://github.com/libgd/libgd/compare/3fe0a7128bac5000fdcfab888bd2a75ec0c9447d...fd623025505e87bba7ec8555eeb72dae4fb0afd
CVE assignment:
http://seclists.org/oss-sec/2016/q2/627
An integer overflow vulnerability was found in gdContributionsAlloc() function in gdinterpolation.c that can lead to out-of-bounds write.
PHP bug:
https://bugs.php.net/bug.php?id=72558
PHP fix:
https://git.php.net/?p=php-src.git;a=commit;h=8fa9d1ce28f3a894b104979df30d0b65e0f21107
The readimagetga function in gdtga.c 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 image.
The output function in gdgifout.c in the GD Graphics Library (aka libgd) allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted image.
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.
gdtga.c 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.