Executive brief
LibTIFF is a widely used software library for handling TIFF image files. A vulnerability in its tiff2pdf tool could allow an attacker to crash applications or potentially execute unauthorized code if a user is tricked into opening a specially crafted, malicious image file. This could lead to a loss of system availability or a compromise of the user's workstation.
Technical details
An out-of-bounds write vulnerability exists in the t2p_readwrite_pdf_image_tile function within LibTIFF's tiff2pdf tool. The flaw is triggered when processing a JPEG-compressed TIFF image where the TIFFTAG_JPEGTABLES tag has a length of one. This causes an incorrect buffer offset calculation during a memcpy operation, leading to a heap-based out-of-bounds write. An attacker can exploit this by providing a malicious file to a user, potentially achieving arbitrary code execution or causing a denial of service (crash). The issue was addressed in LibTIFF version 4.0.7.
Affected products
- LibTIFF LibTIFF up to (excluding) 4.0.7
Timeline
- 2016-09-28: disclosed: Initial report to LibTIFF bugzilla
- 2016-10-08: patched: Fix committed to LibTIFF source code
- 2017-01-27: advisory: NVD publication date
References
- http://bugzilla.maptools.org/show_bug.cgi?id=2579
- http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00017.html
- http://www.debian.org/security/2017/dsa-3762
- http://www.openwall.com/lists/oss-security/2016/11/19/1
- http://www.securityfocus.com/bid/94406
- https://security.gentoo.org/glsa/201701-16