CVE-2017-9935

NameCVE-2017-9935
DescriptionIn LibTIFF 4.0.8, there is a heap-based buffer overflow in the t2p_write_pdf function in tools/tiff2pdf.c. This heap overflow could lead to different damages. For example, a crafted TIFF document can lead to an out-of-bounds read in TIFFCleanup, an invalid free in TIFFClose or t2p_free, memory corruption in t2p_readwrite_pdf_image, or a double free in t2p_free. Given these possibilities, it probably could cause arbitrary code execution.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-1206-1, DSA-4100-1
NVD severitymedium (attack range: remote)
Debian Bugs866109

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
tiff (PTS)wheezy4.0.2-6+deb7u5vulnerable
wheezy (security)4.0.2-6+deb7u20fixed
jessie4.0.3-12.3+deb8u4vulnerable
jessie (security)4.0.3-12.3+deb8u5fixed
stretch (security), stretch4.0.8-2+deb9u2fixed
buster, sid4.0.9-5fixed
tiff3 (PTS)wheezy3.9.6-11fixed
wheezy (security)3.9.6-11+deb7u11fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
tiffsource(unstable)4.0.9-2medium866109
tiffsourcejessie4.0.3-12.3+deb8u5mediumDSA-4100-1
tiffsourcestretch4.0.8-2+deb9u2mediumDSA-4100-1
tiffsourcewheezy4.0.2-6+deb7u17mediumDLA-1206-1
tiff3source(unstable)(unfixed)medium
tiff3sourcewheezy(not affected)

Notes

[wheezy] - tiff3 <not-affected> (does not build vulnerable tiff2pdf)
http://bugzilla.maptools.org/show_bug.cgi?id=2704

Search for package or bug name: Reporting problems