REDHAT-BUG-601274: Integer Overflow
Sauli Pahlman of CERT-FI provided us with fuzzed TIFF file which crashes image viewers using libtiff library.
TIFF image triggers an integer overflow in TIFFroundup() macro called from TIFFFillStrip(). Sufficient large bytecount from the file can cause TIFFroundup() to return 0 and cause TIFFReadBufferSetup() to allocate an insufficiently-sized buffer. Later in TIFFReadRawStrip1(), application-provided read callback is called via TIFFReadFile() that possibly overflows the buffer.
This flaw occurs in libtiff 3.9.2, where bytecount in TIFFFillStrip() is defined as uint32. Older libtiff versions (e.g. those shipped with Red Hat Enterprise Linux 3, 4, and 5) use tsizet (signed int32) as its type and reject bytecount values that may lead to integer overflow earlier.
Issues was reported in launchpad (bug is currently restricted): https://bugs.launchpad.net/ubuntu/+source/tiff/+bug/589565
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-601274?
REDHAT-BUG-601274 is classified as a critical vulnerability due to the potential for denial of service through crashing image viewers.
How do I fix REDHAT-BUG-601274?
To fix REDHAT-BUG-601274, ensure you are using the latest patched version of the libtiff library provided by your distribution.
Which software is affected by REDHAT-BUG-601274?
REDHAT-BUG-601274 affects versions of the libtiff library used in Red Hat Enterprise Linux prior to version 6.
What is the nature of the vulnerability in REDHAT-BUG-601274?
The vulnerability in REDHAT-BUG-601274 is an integer overflow that occurs within the TIFFroundup() macro during the processing of certain TIFF files.
Who reported the REDHAT-BUG-601274 vulnerability?
The REDHAT-BUG-601274 vulnerability was reported by Sauli Pahlman of CERT-FI.