Name | CVE-2016-5318 |
Description | Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted tiff. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-692-1, DLA-693-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
tiff (PTS) | jessie, jessie (lts) | 4.0.3-12.3+deb8u17 | fixed |
| stretch (security) | 4.0.8-2+deb9u8 | fixed |
| stretch (lts), stretch | 4.0.8-2+deb9u12 | fixed |
| buster (security), buster, buster (lts) | 4.1.0+git191117-2~deb10u9 | fixed |
| bullseye (security), bullseye | 4.2.0-1+deb11u5 | fixed |
| bookworm (security), bookworm | 4.5.0-6+deb12u1 | fixed |
| sid, trixie | 4.5.1+git230720-5 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
tiff | source | wheezy | 4.0.2-6+deb7u7 | | DLA-693-1 | |
tiff | source | jessie | 4.0.3-12.3+deb8u2 | | | |
tiff | source | (unstable) | 4.0.6-3 | | | |
tiff3 | source | wheezy | 3.9.6-11+deb7u2 | | DLA-692-1 | |
tiff3 | source | (unstable) | (unfixed) | | | |
Notes
thumbnail(1) was removed in 4.0.6-3 and DSA 3762, marking as fixed although technically still present in the source package
_TIFFVGetField isn't specific to thumbnail tool, there's http://bugzilla.maptools.org/show_bug.cgi?id=2580 to enhance that,
but treating this bug (as related to thumbmail) as fixed.
http://bugzilla.maptools.org/show_bug.cgi?id=2561
This seems a duplicate of CVE-2015-7554 ( http://bugzilla.maptools.org/show_bug.cgi?id=2564 ). At the very least, a generic fix for CVE-2015-7554 would also fix this one as the illegal write is at the exact same location in the code.
Reproducer file here: http://bugzilla.maptools.org/attachment.cgi?id=671
With 4.0.6-2 (sid), I get a segfault.
With 4.0.3-12.3+deb8u1 (jessie), I get a segfault.
With 3.9.6-11+deb7u1 (wheezy), I get a failure: MissingRequired: ../CVE-2016-5318.tiff: TIFF directory is missing required "StripOffsets" field.