CVE-2017-9935
In 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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | tiff | Fixed | 4.0.6-1ubuntu0.4 | UBUNTU-CVE-2017-9935 |
| Ubuntu 14.04 | tiff | Fixed | 4.0.3-7ubuntu0.9 | UBUNTU-CVE-2017-9935 |
| Debian 14 | tiff | Fixed | 4.0.9-2 | DEBIAN-CVE-2017-9935 |
| Debian 13 | tiff | Fixed | 4.0.9-2 | DEBIAN-CVE-2017-9935 |
| Debian 12 | tiff | Fixed | 4.0.9-2 | DEBIAN-CVE-2017-9935 |
| Red Hat Enterprise Linux 7 | compat-libtiff3 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libtiff | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libtiff-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libtiff-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libtiff-tools | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libtiff | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libtiff-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libtiff-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | libtiff | Will not fix Will not fix | ||
| Alpine Linux 3.24 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.23 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.22 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.21 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.20 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.19 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.18 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.17 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.16 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.15 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.14 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.13 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.12 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.11 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.10 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.9 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.8 | tiff | Fixed | 4.0.9-r6 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.7 | tiff | Fixed | 4.0.9-r5 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.6 | tiff | Fixed | 4.0.9-r5 | ALPINE-CVE-2017-9935 |
| Alpine Linux 3.5 | tiff | Fixed | 4.0.9-r5 | ALPINE-CVE-2017-9935 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://usn.ubuntu.com/3606-1/ (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4100 (vendor-advisory)
References
- https://usn.ubuntu.com/3606-1/
- http://bugzilla.maptools.org/show_bug.cgi?id=2704
- https://lists.debian.org/debian-lts-announce/2017/12/msg00008.html
- http://www.securityfocus.com/bid/99296
- https://www.debian.org/security/2018/dsa-4100
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.