REDHAT-BUG-733119: Buffer Overflow
QT contains a buffer overflow on greyscale images with multiple samples per pixel.
From the upstream commit: https://qt.gitorious.org/qt/qt/commit/cb6380beb81ab9571c547270c144988781fed465
fix tiff reader to handle TIFFTAGSAMPLESPERPIXEL for grayscale images
This commit fixes reading a .tiff file from ImageMagick which reports the following: TIFFTAGBITSPERSAMPLE = 8 TIFFTAGSAMPLESPERPIXEL = 2 TIFFTAGPHOTOMETRIC = PHOTOMETRICMINISBLACK The reader uses QImage::FormatIndexed8, but since the samples per pixel value this should be (non-existent) QImage::FormatIndexed16, causing memory corruption. The fix falls back to the "normal" way of reading tiff images.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch cb6380beb81ab9571c547270c144988781fed465
Event History
Frequently Asked Questions
What kind of input is needed to trigger the issue?
An affected Qt TIFF reader must process a grayscale TIFF image that reports 8 bits per sample, two samples per pixel, and PHOTOMETRIC_MINISBLACK. Such an image can cause memory corruption because it is handled as an 8-bit indexed image despite having multiple samples per pixel.
Which applications are most relevant to triage?
Applications using Qt to read or decode TIFF images are the relevant exposure point. The issue is specifically in TIFF image handling, rather than general Qt use.
What is the remediation described by the upstream fix?
The fix changes the TIFF reader to account for TIFFTAG_SAMPLESPERPIXEL when handling grayscale images. For the affected input, it falls back to the normal TIFF-reading path instead of using the incorrect indexed-image format.