A crafted TIFF can crash libtiff in LZWDecodeCompat via underflow (different
Discussions and an analysis are at:
It is reported upstream with patch at
Note that there are two related bugs with two individual patches, the first reported Jan 2009 that indicates it resolves the root cause of the underflow rather than the infinite loop when it comes up. The older bug report is here:
with the patch for bug #1985 being: http://bugzilla.maptools.org/attachment.cgi?id=279
vs the patch for bug #2065 being: http://bugzilla.maptools.org/attachment.cgi?id=314
kfax (kdegraphics) in Red Hat Enterprise Linux 3 includes embedded copy of the libtiff library, but it does not support LZW-encoded tiff images. For further details, see:
Hmm, the patch at upstream bug 1985 appears to prevent the crash, and it's a much more desirable fix than the one at 2065, because it results in a complaint about the image being corrupt instead of just silently bogus output. I wonder why Frank didn't apply that one? I'll try to ping him privately about it.
Common Vulnerabilities and Exposures assigned an identifier CVE-2009-2285
to the following vulnerability:
Buffer underflow in the LZWDecodeCompat function in libtiff 3.8.2
allows context-dependent attackers to cause a denial of service
(crash) via a crafted TIFF image, a different vulnerability than
libtiff-3.8.2-13.fc10 has been submitted as an update for Fedora 10.
libtiff-3.8.2-13.fc11 has been submitted as an update for Fedora 11.
libtiff-3.8.2-13.fc9 has been submitted as an update for Fedora 9.
libtiff-3.8.2-13.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
libtiff-3.8.2-13.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
libtiff-3.8.2-13.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
Michael, you're maintaining recently-added-to-fedora mingw32-libtiff packages, that may need this as well. You can find updated libtiff-3.8.2-lzw-bugs.patch patch in libtiff package CVS.
This issue has been addressed in following products:
Red Hat Enterprise Linux 3
Red Hat Enterprise Linux 4
Red Hat Enterprise Linux 5
Via RHSA-2009:1159 https://rhn.redhat.com/errata/RHSA-2009-1159.html