Memory corruption in LibTIFF - CVE-2017-9935
Published: April 3, 2018
Vulnerability identifier: #VU11499
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-9935
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The weakness exists in the t2p_write_pdf function in tools/tiff2pdf.c due to heap-based buffer overflow. A remote attacker can submit a specially crafted TIFF document, trigger 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 and execute arbitrary code on the target system.
Successful exploitation of the vulnerability may result in system compromise.
The weakness exists in the t2p_write_pdf function in tools/tiff2pdf.c due to heap-based buffer overflow. A remote attacker can submit a specially crafted TIFF document, trigger 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 and execute arbitrary code on the target system.
Successful exploitation of the vulnerability may result in system compromise.
Affected software
LibTIFF
Arch Linux
Opensuse
Fedora
tiff (Alpine package)
tiff (Debian package)
libtiff
Dynamic System Analysis (DSA) Preboot
Arch Linux
Opensuse
Fedora
tiff (Alpine package)
tiff (Debian package)
libtiff
Dynamic System Analysis (DSA) Preboot
How to mitigate CVE-2017-9935
Install update from vendor's website.
tiff (Alpine package) - addressed in versions 4.0.9-r5, 4.0.9-r6
tiff (Debian package) - update to 4.0.8-2+deb9u2
Dynamic System Analysis (DSA) Preboot - update to dsyte2z-9.65
libtiff - addressed in versions 4.0.9-9.fc27, 4.0.9-9.fc28
tiff (Debian package) - update to 4.0.8-2+deb9u2
Dynamic System Analysis (DSA) Preboot - update to dsyte2z-9.65
libtiff - addressed in versions 4.0.9-9.fc27, 4.0.9-9.fc28
External References
Related Security Bulletins
- Multiple vulnerabilities in LibTIFF
- Debian update for tiff
- Arch Linux update for libtiff
- Arch Linux update for lib32-libtiff
- OpenSUSE Linux update for tiff
- OpenSUSE Linux update for tiff
- Memory corruption in tiff (Alpine package)
- Multiple vulnerabilities in IBM Dynamic System Analysis (DSA) Preboot
- Fedora 27 update for libtiff
- Fedora 28 update for libtiff