Out of bounds write vulnerability was found in cvtClump function in rgb2ycybr.c, allowing attacker to cause a denial of service via a crafted TIFF image.
187 lumaGreen[TIFFGetG(RGB)] +
189 /* accumulate chrominance */
190 Cb += (TIFFGetB(RGB) - Y) * D1;
191 Cr += (TIFFGetR(RGB) - Y) * D2;
192 /* emit luminence */
193 *op++ = V2Code(Y,
194 refBlackWhite, refBlackWhite, 255);
Name: Mei Wang (Qihoo 360)
The command line parameters passed to the tool influence the calculations within the cvtRaster() function in gb2ycbcr.c. This can lead to a call to _TIFFmalloc() with a bogus size. If this allocation fails, NULL is returned. The application doesn't check for this condition, which ultimately leads to an access violation when the cvtClump() function tries to write "into" it.
I've not really investigated what happens if the allocation succeeds - worst case could be a memory corruption, but since this issue depends on far-fetched custom command line parameters, I consider the likelyhood and impact of this to be minimal.
Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.