| Name | CVE-2015-8668 | 
| Description | 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. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DLA-693-1 | 
| Debian Bugs | 842046 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| tiff (PTS) | bullseye | 4.2.0-1+deb11u5 | fixed | 
|  | bullseye (security) | 4.2.0-1+deb11u7 | fixed | 
|  | bookworm | 4.5.0-6+deb12u2 | fixed | 
|  | bookworm (security) | 4.5.0-6+deb12u3 | fixed | 
|  | trixie | 4.7.0-3 | fixed | 
|  | trixie (security) | 4.7.0-3+deb13u1 | fixed | 
|  | forky, sid | 4.7.1-1 | 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 |  |  | 842046 | 
| tiff3 | source | wheezy | (not affected) |  |  |  | 
| tiff3 | source | (unstable) | (unfixed) |  |  |  | 
Notes
[wheezy] - tiff3 <not-affected> (Does not ship libtiff tools)
http://bugzilla.maptools.org/show_bug.cgi?id=2563
Red Hat say it's only OOB read: https://bugzilla.redhat.com/show_bug.cgi?id=1294425#c1
Red Hat's patch is partially incorrect according to upstream
Issue was also marked as wontfix, because bmp2tiff utility has been removed
http://bugzilla.maptools.org/show_bug.cgi?id=2563#c4
Reproducer file here: http://bugzilla.maptools.org/attachment.cgi?id=677
bmp2tiff was removed in 4.0.6-3 and DSA 3762, marking as fixed although technically still present in the source package