| Name | CVE-2015-7313 | 
| Description | LibTIFF before 4.0.7 allows remote attackers to cause a denial of service (memory consumption and crash) via a crafted tiff file. | 
| 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) | 
| Debian Bugs | 800124 | 
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 | squeeze | (not affected) |  |  |  | 
| tiff | source | wheezy | (not affected) |  |  |  | 
| tiff | source | (unstable) | 4.0.7-1 |  |  | 800124 | 
| tiff3 | source | wheezy | (not affected) |  |  |  | 
| tiff3 | source | (unstable) | (unfixed) |  |  |  | 
Notes
[jessie] - tiff <ignored> (Minor issue)
[wheezy] - tiff <not-affected> (Can't reproduce)
[squeeze] - tiff <not-affected> (Can't reproduce the issue, file is rejected with "Integer overflow in TIFFVStripSize" and "cannot handle zero strip size.")
[wheezy] - tiff3 <not-affected> (Can't reproduce the issue, file is rejected with "Integer overflow in TIFFVStripSize" and "cannot handle zero strip size.")
Test file here: https://marc.info/?l=oss-security&m=144284777006804&q=p6
Reproduce with "ltrace -e realloc tiffdither /tmp/oom.tif /dev/null"
at the end you see "libtiff.so.5->realloc(0, 1636178024)"