Bug 733119 (CVE-2011-3194)

Summary: CVE-2011-3194 qt buffer overflow in greyscale images
Product: [Other] Security Response Reporter: Josh Bressers <bressers>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: itamar, jreznik, kevin, ltinkl, mjc, rdieter, rnovacek, smparrish, than, vhumpa
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-15 22:52:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 736575, 737812, 737813    
Bug Blocks: 733120    
Attachments:
Description Flags
Upstream patch none

Description Josh Bressers 2011-08-24 20:03:27 UTC
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 TIFFTAG_SAMPLESPERPIXEL for grayscale images

This commit fixes reading a .tiff file from ImageMagick which reports
the following:
TIFFTAG_BITSPERSAMPLE = 8
TIFFTAG_SAMPLESPERPIXEL = 2
TIFFTAG_PHOTOMETRIC = PHOTOMETRIC_MINISBLACK
The reader uses QImage::Format_Indexed8, but since the samples per pixel
value this should be (non-existent) QImage::Format_Indexed16, causing
memory corruption. The fix falls back to the "normal" way of reading
tiff images.

Comment 1 Huzaifa S. Sidhpurwala 2011-09-08 06:09:25 UTC
Created attachment 522048 [details]
Upstream patch

Comment 3 Huzaifa S. Sidhpurwala 2011-09-08 06:34:55 UTC
This issue affects the version of qt shipped with Red Hat Enterprise Linux 6.

This issue does not affect the version of qt shipped with Red Hat Enterprise Linux 4. 

This issue does not affect the version of qt and qt4 shipped with Red Hat Enterprise Linux 5.

This issue does not affect the version of qt and qt3 shipped with Red Hat Enterprise Linux 6.

--

This issue affects the version of qt shipped with Fedora-14 and Fedora-15

Comment 4 Huzaifa S. Sidhpurwala 2011-09-08 06:36:43 UTC
Created qt tracking bugs for this issue

Affects: fedora-all [bug 736575]

Comment 5 Huzaifa S. Sidhpurwala 2011-09-08 07:13:31 UTC
We may also want to consider this patch while fixing the issue:

https://qt.gitorious.org/qt/qt/commit/c9d2445bc3bbccd3cc6cfb95f09108cabe981840

Reference:
https://bugreports.qt.nokia.com//browse/QTBUG-19878
https://bugreports.qt.nokia.com/browse/QTBUG-20167

Comment 12 errata-xmlrpc 2011-09-21 18:06:17 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2011:1323 https://rhn.redhat.com/errata/RHSA-2011-1323.html

Comment 13 errata-xmlrpc 2011-09-21 18:37:23 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2011:1328 https://rhn.redhat.com/errata/RHSA-2011-1328.html