Every CVE Search/ Get API key

CVE-2016-9540

tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width...

9.8 CriticalFix available

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

3.68%Up 2.7 points since Feb 4, 2022
90%50%10%1%

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 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 HighCVSS: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 CriticalCVSS: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

Affected packages
PackageAffectedFixed
tiff
Debian:12
before 4.0.7-1
4.0.7-1
tiff
Debian:13
before 4.0.7-1
4.0.7-1
tiff
Debian:14
before 4.0.7-1
4.0.7-1
tiff
Debian: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 less
4.0.2-6+deb7u54.0.2-6+deb7u64.0.2-6+deb7u74.0.2-6+deb7u8
4.0.2-6+deb7u9
tiff
Debian: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
libtiff
Red 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-debuginfo
Red 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-devel
Red 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-static
Red 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
Red 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
Affected packages
PackageAffectedFixed
libtiff-debuginfo
Red 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-devel
Red 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-static
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-static
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-static
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-static
Red 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-tools
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-static
Red 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-tools
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-static
Red 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-tools
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-static
Red 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-tools
Red 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
tiff
SUSE: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
tiff
SUSE: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
tiff
SUSE: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
tiff
Ubuntu: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 less
4.0.3-7ubuntu0.14.0.3-7ubuntu0.24.0.3-7ubuntu0.34.0.3-7ubuntu0.4
4.0.3-7ubuntu0.6
tiff
Ubuntu: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
tiff
Ubuntu: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 less
4.0.3-7ubuntu0.14.0.3-7ubuntu0.24.0.3-7ubuntu0.34.0.3-7ubuntu0.4
4.0.3-7ubuntu0.6
tiff
Ubuntu: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

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 102 moreShow less
MoveEnter Open