CVE-2016-5315
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to...
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted tiff image.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted tiff image.
- Record
CVE-2016-5315- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted tiff image.
- Record
CVE-2016-5315- Updated
- 2026-11-02
EUVDEUVD-2016-6266 No score
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted tiff image.
- Record
EUVD-2016-6266- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-7vx7-8m24-fqv4
5.5
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to...
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted tiff image.
- Record
GHSA-7vx7-8m24-fqv4- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVALPINE-CVE-2016-5315
5.5
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted tiff image.
- Record
ALPINE-CVE-2016-5315- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV
5.5
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted tiff image.
- Record
CVE-2016-5315- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2016-5315
5.5
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted tiff image.
- Record
DEBIAN-CVE-2016-5315- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-5315
5.5
The setByteArray function in tif_dir.c in libtiff 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted tiff image.
- Record
UBUNTU-CVE-2016-5315- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2016-0349 No score
The updated packages fix libtiff security vulnerabilities
The _TIFFVGetField function in tif_dir.c in libtiff 4.0.6 allows attackers to cause a denial of service (invalid memory write and crash) or possibly have unspecified other impact via crafted field data in an extension tag in a TIFF image. (CVE-2015-7554)
Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image. (CVE-2015-8668)
Buffer overflow in the readextension function in gif2tiff.c in LibTIFF 4.0.6 allows remote attackers to cause a denial of service (application crash) via a crafted GIF file. (CVE-2016-3186) (the program gif2tiff has been obsoleted)
The fpAcc function in tif_predict.c in the tiff2rgba tool in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (divide-by-zero error) via a crafted TIFF image. (CVE-2016-3622)
The rgb2ycbcr tool in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (divide-by-zero) by setting the (1) v or (2) h parameter to 0. (CVE-2016-3623)
The _TIFFVGetField function in tif_dirinfo.c in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted TIFF image. (CVE-2016-3632)
Multiple integer overflows in the (1) cvt_by_strip and (2) cvt_by_tile functions in the tiff2rgba tool in LibTIFF 4.0.6 and earlier, when -b mode is enabled,allow remote attackers to cause a denial of service (crash) or execute arbitrary code via a crafted TIFF image, which triggers an out-of-bounds write. (CVE-2016-3945)
Heap-based buffer overflow in the horizontalDifference8 function in tif_pixarlog.c in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (crash) or execute arbitrary code via a crafted TIFF image to tiffcp. (CVE-2016-3990)
Heap-based buffer overflow in the loadImage function in the tiffcrop tool in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted TIFF image with zero tiles. (CVE-2016-3991)
PixarLogDecode() out-of-bound writes (CVE-2016-5314)
tif_dir.c: setByteArray() Read access violation (CVE-2016-5315)
tif_pixarlog.c: PixarLogCleanup() Segmentation fault (CVE-2016-5316)
crash occurs when generating a thumbnail for a crafted TIFF image (CVE-2016-5317)
rgb2ycbcr: command excution (CVE-2016-5320)
DumpModeDecode(): Ddos (CVE-2016-5321)
tiffcrop: extractContigSamplesBytes: out-of-bounds read (CVE-2016-5322)
tiffcrop _TIFFFax3fillruns(): divide by zero (CVE-2016-5323)
tiff: heap-based buffer overflow when using the PixarLog compression format (CVE-2016-5875)
tiff: information leak in libtiff/tif_read.c (CVE-2016-6223)
- Record
MGASA-2016-0349- Updated
- 2026-11-02
OSVSUSE-SU-2018:1472-1 No score
Security update for tiff
This update for tiff fixes the following issues:
Security issues fixed:
- CVE-2016-5315: The setByteArray function in tif_dir.c allowed remote attackers to cause a denial of service (out-of-bounds read) via a crafted tiff image. (bsc#984809)
- CVE-2016-10267: LibTIFF allowed remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted TIFF image, related to libtiff/tif_ojpeg.c:816:8. (bsc#1017694)
- CVE-2016-10269: LibTIFF allowed remote attackers to cause a denial of service (heap-based buffer over-read) or possibly have unspecified other impact via a crafted TIFF image, related to 'READ of size 512' and libtiff/tif_unix.c:340:2. (bsc#1031254)
- CVE-2016-10270: LibTIFF allowed remote attackers to cause a denial of service (heap-based buffer over-read) or possibly have unspecified other impact via a crafted TIFF image, related to 'READ of size 8' and libtiff/tif_read.c:523:22. (bsc#1031250)
- CVE-2017-18013: In LibTIFF, there was a Null-Pointer Dereference in the tif_print.c TIFFPrintDirectory function, as demonstrated by a tiffinfo crash. (bsc#1074317)
- CVE-2017-7593: tif_read.c did not ensure that tif_rawdata is properly initialized, which might have allowed remote attackers to obtain sensitive information from process memory via a crafted image. (bsc#1033129)
- CVE-2017-7595: The JPEGSetupEncode function in tiff_jpeg.c allowed remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted image. (bsc#1033127)
- CVE-2017-7596: LibTIFF had an 'outside the range of representable values of type float' undefined behavior issue, which might have allowed remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image. (bsc#1033126)
- CVE-2017-7597: tif_dirread.c had an 'outside the range of representable values of type float' undefined behavior issue, which might have allowed remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image. (bsc#1033120)
- CVE-2017-7599: LibTIFF had an 'outside the range of representable values of type short' undefined behavior issue, which might have allowed remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image. (bsc#1033113)
- CVE-2017-7600: LibTIFF had an 'outside the range of representable values of type unsigned char' undefined behavior issue, which might have allowed remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image. (bsc#1033112)
- CVE-2017-7601: LibTIFF had a 'shift exponent too large for 64-bit type long' undefined behavior issue, which might have allowed remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image. (bsc#1033111)
- CVE-2017-7602: LibTIFF had a signed integer overflow, which might have allowed remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image. (bsc#1033109)
- Multiple divide by zero issues
- CVE-2016-5314: Buffer overflow in the PixarLogDecode function in tif_pixarlog.c allowed remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted TIFF image, as demonstrated by overwriting the vgetparent function pointer with rgb2ycbcr. (bsc#987351 bsc#984808 bsc#984831)
- Record
SUSE-SU-2018:1472-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 |
|---|---|---|
tiffAlpine:v3.2 |
before 4.0.7-r0 | 4.0.7-r0 |
tiffAlpine:v3.3 |
before 4.0.7-r0 | 4.0.7-r0 |
tiffAlpine:v3.4 |
before 4.0.7-r0 | 4.0.7-r0 |
tiffDebian:12 |
before 4.0.6-2 | 4.0.6-2 |
tiffDebian:13 |
before 4.0.6-2 | 4.0.6-2 |
tiffDebian:14 |
before 4.0.6-2 | 4.0.6-2 |
tiffDebian:7 From an advisory covering 8 CVEs |
before 4.0.2-6+deb7u6, plus listed versions 4.0.2-64.0.2-6+deb7u14.0.2-6+deb7u24.0.2-6+deb7u34.0.2-6+deb7u44.0.2-6+deb7u5 |
4.0.2-6+deb7u6 |
tiff3Debian:7 From an advisory covering 21 CVEs |
before 3.9.6-11+deb7u1, plus listed versions 3.9.6-11 |
3.9.6-11+deb7u1 |
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 |
libtiffMageia:5 From an advisory covering 19 CVEs |
before 4.0.6-1.4.mga5 | 4.0.6-1.4.mga5 |
Show 7 moreShow less
| Package | Affected | Fixed |
|---|---|---|
tiffSUSE:Linux Enterprise Software Development Kit 11 SP4 From an advisory covering 14 CVEs |
before 3.8.2-141.169.6.1 | 3.8.2-141.169.6.1 |
tiffSUSE:Linux Enterprise Server 11 SP4 From an advisory covering 14 CVEs |
before 3.8.2-141.169.6.1 | 3.8.2-141.169.6.1 |
tiffSUSE:Linux Enterprise Server for SAP Applications 11 SP4 From an advisory covering 14 CVEs |
before 3.8.2-141.169.6.1 | 3.8.2-141.169.6.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-5315 is a medium vulnerability (CVSS 5.5) in Libtiff, published June 15, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.90%, the 79th percentile. Fixed in tiff 4.0.7-r0.
References
securityfocus.com/bid/91204
openwall.com/lists/oss-security/2016/06/15/2
security.gentoo.org/glsa/201701-16
bugzilla.redhat.com/show_bug.cgi?id=1346694
debian.org/security/2017/dsa-3762
nvd.nist.gov/vuln/detail/CVE-2016-5315
Show 87 moreShow less
github.com/advisories/GHSA-7vx7-8m24-fqv4
security.alpinelinux.org/vuln/CVE-2016-5315
security-tracker.debian.org/tracker/CVE-2016-5315
advisories.mageia.org/MGASA-2016-0349.html
bugs.mageia.org/show_bug.cgi?id=17480
openwall.com/lists/oss-security/2015/12/26/7
lists.opensuse.org/opensuse-updates/2016-04/msg00064.html
openwall.com/lists/oss-security/2016/07/14/4
lwn.net/Vulnerabilities/695692
lists.opensuse.org/opensuse-updates/2016-07/msg00087.html
rhn.redhat.com/errata/RHSA-2016-1546.html
lwn.net/Vulnerabilities/696207
lwn.net/Vulnerabilities/698795
lwn.net/Vulnerabilities/699684
suse.com/support/update/announcement/2018/suse-su-20181472-1
bugzilla.suse.com/1017694
bugzilla.suse.com/1031250
bugzilla.suse.com/1031254
bugzilla.suse.com/1033109
bugzilla.suse.com/1033111
bugzilla.suse.com/1033112
bugzilla.suse.com/1033113
bugzilla.suse.com/1033120
bugzilla.suse.com/1033126
bugzilla.suse.com/1033127
bugzilla.suse.com/1033129
bugzilla.suse.com/1074317
bugzilla.suse.com/984808
bugzilla.suse.com/984809
bugzilla.suse.com/984831
bugzilla.suse.com/987351
suse.com/security/cve/CVE-2016-10267
suse.com/security/cve/CVE-2016-10269
suse.com/security/cve/CVE-2016-10270
suse.com/security/cve/CVE-2016-5314
suse.com/security/cve/CVE-2016-5315
suse.com/security/cve/CVE-2017-18013
suse.com/security/cve/CVE-2017-7593
suse.com/security/cve/CVE-2017-7595
suse.com/security/cve/CVE-2017-7596
suse.com/security/cve/CVE-2017-7597
suse.com/security/cve/CVE-2017-7599
suse.com/security/cve/CVE-2017-7600
suse.com/security/cve/CVE-2017-7601
suse.com/security/cve/CVE-2017-7602
ubuntu.com/security/CVE-2016-5315
seclists.org/oss-sec/2016/q2/544
ubuntu.com/security/notices/USN-3212-1
cve.org/CVERecord?id=CVE-2016-5315
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-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-9540
ubuntu.com/security/CVE-2016-10092
ubuntu.com/security/CVE-2016-10093
ubuntu.com/security/CVE-2016-10094
ubuntu.com/security/CVE-2017-5225