CVE-2016-9540
tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width...
tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka "cpStripToTile heap-buffer-overflow."
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka "cpStripToTile heap-buffer-overflow."
- Record
CVE-2016-9540- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-119, CWE-787
- Updated
- 2026-11-02
CVE List No score
tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka "cpStripToTile heap-buffer-overflow."
- Record
CVE-2016-9540- Updated
- 2026-11-02
EUVDEUVD-2016-10346 No score
tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka "cpStripToTile heap-buffer-overflow."
- Record
EUVD-2016-10346- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-5m38-69cg-mcjw
9.8
tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width...
tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka "cpStripToTile heap-buffer-overflow."
- Record
GHSA-5m38-69cg-mcjw- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
OSV
9.8
tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka "cpStripToTile heap-buffer-overflow."
- Record
CVE-2016-9540- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-9540
9.8
tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka "cpStripToTile heap-buffer-overflow."
- Record
DEBIAN-CVE-2016-9540- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVRHSA-2017:0225
8.1
Red Hat Security Advisory: libtiff security update
- Record
RHSA-2017:0225- CVSS 3.0
- 8.1 High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-9540
9.8
tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka "cpStripToTile heap-buffer-overflow."
- Record
UBUNTU-CVE-2016-9540- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVSUSE-SU-2018:1835-1 No score
Security update for tiff
This update for tiff fixes the following security issues:
- CVE-2017-5225: Prevent heap buffer overflow in the tools/tiffcp that could have caused DoS or code execution via a crafted BitsPerSample value (bsc#1019611)
- CVE-2018-7456: Prevent a NULL Pointer dereference in the function TIFFPrintDirectory when using the tiffinfo tool to print crafted TIFF information, a different vulnerability than CVE-2017-18013 (bsc#1082825)
- CVE-2017-11613: Prevent denial of service in the TIFFOpen function. During the TIFFOpen process, td_imagelength is not checked. The value of td_imagelength can be directly controlled by an input file. In the ChopUpSingleUncompressedStrip function, the _TIFFCheckMalloc function is called based on td_imagelength. If the value of td_imagelength is set close to the amount of system memory, it will hang the system or trigger the OOM killer (bsc#1082332)
- CVE-2016-10266: Prevent remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted TIFF image, related to libtiff/tif_read.c:351:22 (bsc#1031263)
- CVE-2018-8905: Prevent heap-based buffer overflow in the function LZWDecodeCompat via a crafted TIFF file (bsc#1086408)
- CVE-2016-9540: Prevent out-of-bounds write on tiled images with odd tile width versus image width (bsc#1011839).
- CVE-2016-9535: tif_predict.h and tif_predict.c had assertions that could have lead to assertion failures in debug mode, or buffer overflows in release mode, when dealing with unusual tile size like YCbCr with subsampling (bsc#1011846).
- CVE-2016-9535: tif_predict.h and tif_predict.c had assertions that could have lead to assertion failures in debug mode, or buffer overflows in release mode, when dealing with unusual tile size like YCbCr with subsampling (bsc#1011846).
- Removed assert in readSeparateTilesIntoBuffer() function (bsc#1017689).
- CVE-2016-10095: Prevent stack-based buffer overflow in the _TIFFVGetField function that allowed remote attackers to cause a denial of service (crash) via a crafted TIFF file (bsc#1017690).
- CVE-2016-8331: Prevent remote code execution because of incorrect handling of TIFF images. A crafted TIFF document could have lead to a type confusion vulnerability resulting in remote code execution. This vulnerability could have been be triggered via a TIFF file delivered to the application using LibTIFF's tag extension functionality (bsc#1007276).
- CVE-2016-3632: The _TIFFVGetField function allowed remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted TIFF image (bsc#974621).
- Record
SUSE-SU-2018:1835-1- Updated
- 2026-11-02
OSVUSN-3212-1 No score
tiff vulnerabilities
It was discovered that LibTIFF incorrectly handled certain malformed images. If a user or automated system were tricked into opening a specially crafted image, a remote attacker could crash the application, leading to a denial of service, or possibly execute arbitrary code with user privileges.
- Record
USN-3212-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
tiffDebian:12 |
before 4.0.7-1 | 4.0.7-1 |
tiffDebian:13 |
before 4.0.7-1 | 4.0.7-1 |
tiffDebian:14 |
before 4.0.7-1 | 4.0.7-1 |
tiffDebian:7 From an advisory covering 17 CVEs |
before 4.0.2-6+deb7u9, plus listed versions 4.0.2-64.0.2-6+deb7u14.0.2-6+deb7u24.0.2-6+deb7u34.0.2-6+deb7u4 Show 4 moreShow less4.0.2-6+deb7u54.0.2-6+deb7u64.0.2-6+deb7u74.0.2-6+deb7u8 |
4.0.2-6+deb7u9 |
tiffDebian:8 From an advisory covering 30 CVEs |
before 4.0.3-12.3+deb8u2, plus listed versions 4.0.3-12.34.0.3-12.3+deb8u1 |
4.0.3-12.3+deb8u2 |
libtiffRed Hat:enterprise_linux:6::client From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-debuginfoRed Hat:enterprise_linux:6::client From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-develRed Hat:enterprise_linux:6::client From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-staticRed Hat:enterprise_linux:6::client From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiffRed Hat:enterprise_linux:6::computenode From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
Show 38 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libtiff-debuginfoRed Hat:enterprise_linux:6::computenode From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-develRed Hat:enterprise_linux:6::computenode From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-staticRed Hat:enterprise_linux:6::computenode From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiffRed Hat:enterprise_linux:6::server From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-debuginfoRed Hat:enterprise_linux:6::server From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-develRed Hat:enterprise_linux:6::server From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-staticRed Hat:enterprise_linux:6::server From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiffRed Hat:enterprise_linux:6::workstation From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-debuginfoRed Hat:enterprise_linux:6::workstation From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-develRed Hat:enterprise_linux:6::workstation From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiff-staticRed Hat:enterprise_linux:6::workstation From an advisory covering 8 CVEs |
before 0:3.9.4-21.el6_8 | 0:3.9.4-21.el6_8 |
libtiffRed Hat:enterprise_linux:7::client From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-debuginfoRed Hat:enterprise_linux:7::client From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-develRed Hat:enterprise_linux:7::client From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-staticRed Hat:enterprise_linux:7::client From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-toolsRed Hat:enterprise_linux:7::client From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiffRed Hat:enterprise_linux:7::computenode From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-debuginfoRed Hat:enterprise_linux:7::computenode From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-develRed Hat:enterprise_linux:7::computenode From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-staticRed Hat:enterprise_linux:7::computenode From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-toolsRed Hat:enterprise_linux:7::computenode From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiffRed Hat:enterprise_linux:7::server From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-debuginfoRed Hat:enterprise_linux:7::server From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-develRed Hat:enterprise_linux:7::server From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-staticRed Hat:enterprise_linux:7::server From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-toolsRed Hat:enterprise_linux:7::server From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiffRed Hat:enterprise_linux:7::workstation From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-debuginfoRed Hat:enterprise_linux:7::workstation From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-develRed Hat:enterprise_linux:7::workstation From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-staticRed Hat:enterprise_linux:7::workstation From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
libtiff-toolsRed Hat:enterprise_linux:7::workstation From an advisory covering 8 CVEs |
before 0:4.0.3-27.el7_3 | 0:4.0.3-27.el7_3 |
tiffSUSE:Linux Enterprise Software Development Kit 11 SP4 From an advisory covering 13 CVEs |
before 3.8.2-141.169.9.1 | 3.8.2-141.169.9.1 |
tiffSUSE:Linux Enterprise Server 11 SP4 From an advisory covering 13 CVEs |
before 3.8.2-141.169.9.1 | 3.8.2-141.169.9.1 |
tiffSUSE:Linux Enterprise Server for SAP Applications 11 SP4 From an advisory covering 13 CVEs |
before 3.8.2-141.169.9.1 | 3.8.2-141.169.9.1 |
tiffUbuntu:14.04:LTS |
before 4.0.3-7ubuntu0.6, plus listed versions 4.0.2-4ubuntu34.0.3-5ubuntu14.0.3-64.0.3-6ubuntu14.0.3-7 Show 4 moreShow less4.0.3-7ubuntu0.14.0.3-7ubuntu0.24.0.3-7ubuntu0.34.0.3-7ubuntu0.4 |
4.0.3-7ubuntu0.6 |
tiffUbuntu:16.04:LTS |
before 4.0.6-1ubuntu0.1, plus listed versions 4.0.3-12.3ubuntu24.0.5-14.0.6-1 |
4.0.6-1ubuntu0.1 |
tiffUbuntu:14.04:LTS From an advisory covering 39 CVEs |
before 4.0.3-7ubuntu0.6, plus listed versions 4.0.2-4ubuntu34.0.3-5ubuntu14.0.3-64.0.3-6ubuntu14.0.3-7 Show 4 moreShow less4.0.3-7ubuntu0.14.0.3-7ubuntu0.24.0.3-7ubuntu0.34.0.3-7ubuntu0.4 |
4.0.3-7ubuntu0.6 |
tiffUbuntu:16.04:LTS From an advisory covering 39 CVEs |
before 4.0.6-1ubuntu0.1, plus listed versions 4.0.3-12.3ubuntu24.0.5-14.0.6-1 |
4.0.6-1ubuntu0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-9540 is a critical vulnerability (CVSS 9.8) in Libtiff, published November 22, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.68%, the 89th percentile. Fixed in tiff 4.0.7-1.
References
github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3
securityfocus.com/bid/94747
rhn.redhat.com/errata/RHSA-2017-0225.html
securityfocus.com/bid/94484
debian.org/security/2017/dsa-3762
nvd.nist.gov/vuln/detail/CVE-2016-9540
Show 102 moreShow less
github.com/advisories/GHSA-5m38-69cg-mcjw
security-tracker.debian.org/tracker/CVE-2016-9540
access.redhat.com/errata/RHSA-2017:0225
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1389222
bugzilla.redhat.com/show_bug.cgi?id=1397751
bugzilla.redhat.com/show_bug.cgi?id=1397755
bugzilla.redhat.com/show_bug.cgi?id=1397758
bugzilla.redhat.com/show_bug.cgi?id=1397760
bugzilla.redhat.com/show_bug.cgi?id=1397768
bugzilla.redhat.com/show_bug.cgi?id=1397769
bugzilla.redhat.com/show_bug.cgi?id=1402778
security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_0225.json
access.redhat.com/security/cve/CVE-2015-8870
cve.org/CVERecord?id=CVE-2015-8870
nvd.nist.gov/vuln/detail/CVE-2015-8870
access.redhat.com/security/cve/CVE-2016-5652
cve.org/CVERecord?id=CVE-2016-5652
nvd.nist.gov/vuln/detail/CVE-2016-5652
talosintelligence.com/reports/TALOS-2016-0187
access.redhat.com/security/cve/CVE-2016-9533
cve.org/CVERecord?id=CVE-2016-9533
nvd.nist.gov/vuln/detail/CVE-2016-9533
access.redhat.com/security/cve/CVE-2016-9534
cve.org/CVERecord?id=CVE-2016-9534
nvd.nist.gov/vuln/detail/CVE-2016-9534
access.redhat.com/security/cve/CVE-2016-9535
cve.org/CVERecord?id=CVE-2016-9535
nvd.nist.gov/vuln/detail/CVE-2016-9535
access.redhat.com/security/cve/CVE-2016-9536
cve.org/CVERecord?id=CVE-2016-9536
nvd.nist.gov/vuln/detail/CVE-2016-9536
access.redhat.com/security/cve/CVE-2016-9537
cve.org/CVERecord?id=CVE-2016-9537
nvd.nist.gov/vuln/detail/CVE-2016-9537
access.redhat.com/security/cve/CVE-2016-9540
cve.org/CVERecord?id=CVE-2016-9540
suse.com/support/update/announcement/2018/suse-su-20181835-1
bugzilla.suse.com/1007276
bugzilla.suse.com/1011839
bugzilla.suse.com/1011846
bugzilla.suse.com/1017689
bugzilla.suse.com/1017690
bugzilla.suse.com/1019611
bugzilla.suse.com/1031263
bugzilla.suse.com/1082332
bugzilla.suse.com/1082825
bugzilla.suse.com/1086408
bugzilla.suse.com/974621
suse.com/security/cve/CVE-2014-8128
suse.com/security/cve/CVE-2015-7554
suse.com/security/cve/CVE-2016-10095
suse.com/security/cve/CVE-2016-10266
suse.com/security/cve/CVE-2016-3632
suse.com/security/cve/CVE-2016-5318
suse.com/security/cve/CVE-2016-8331
suse.com/security/cve/CVE-2016-9535
suse.com/security/cve/CVE-2016-9540
suse.com/security/cve/CVE-2017-11613
suse.com/security/cve/CVE-2017-5225
suse.com/security/cve/CVE-2018-7456
suse.com/security/cve/CVE-2018-8905
ubuntu.com/security/CVE-2016-9540
ubuntu.com/security/notices/USN-3212-1
ubuntu.com/security/CVE-2015-7554
ubuntu.com/security/CVE-2015-8668
ubuntu.com/security/CVE-2016-3622
ubuntu.com/security/CVE-2016-3623
ubuntu.com/security/CVE-2016-3624
ubuntu.com/security/CVE-2016-3632
ubuntu.com/security/CVE-2016-3658
ubuntu.com/security/CVE-2016-3945
ubuntu.com/security/CVE-2016-3990
ubuntu.com/security/CVE-2016-3991
ubuntu.com/security/CVE-2016-5314
ubuntu.com/security/CVE-2016-5315
ubuntu.com/security/CVE-2016-5316
ubuntu.com/security/CVE-2016-5317
ubuntu.com/security/CVE-2016-5320
ubuntu.com/security/CVE-2016-5321
ubuntu.com/security/CVE-2016-5322
ubuntu.com/security/CVE-2016-5323
ubuntu.com/security/CVE-2016-5652
ubuntu.com/security/CVE-2016-5875
ubuntu.com/security/CVE-2016-6223
ubuntu.com/security/CVE-2016-8331
ubuntu.com/security/CVE-2016-9273
ubuntu.com/security/CVE-2016-9297
ubuntu.com/security/CVE-2016-9448
ubuntu.com/security/CVE-2016-9453
ubuntu.com/security/CVE-2016-9532
ubuntu.com/security/CVE-2016-9533
ubuntu.com/security/CVE-2016-9534
ubuntu.com/security/CVE-2016-9535
ubuntu.com/security/CVE-2016-9536
ubuntu.com/security/CVE-2016-9537
ubuntu.com/security/CVE-2016-9538
ubuntu.com/security/CVE-2016-9539
ubuntu.com/security/CVE-2016-10092
ubuntu.com/security/CVE-2016-10093
ubuntu.com/security/CVE-2016-10094
ubuntu.com/security/CVE-2017-5225