Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Originally reported by Sauli Pahlman in Launchpad:
https://bugs.launchpad.net/bugs/591605
Attached tif file triggers out-of-bounds read in putcontig8bitYCbCr11tile.
pp points to buffer allocated in gtTileContig with the size of TIFFTileSize(tif). For this file, it's 80640. putcontig8bitYCbCr11tile tries to read w*h*3 bytes out of it (234*213*3 == 149526).
Version-Release number of selected component (if applicable):
libtiff-3.9.2-3.el6.i686
Additional info:
Program received signal SIGSEGV, Segmentation fault.
0x008a7e15 in putcontig8bitYCbCr11tile (img=<value optimized out>, cp=0xb7fed420, x=<value optimized out>,
y=<value optimized out>, w=<value optimized out>, h=<value optimized out>, fromskew=<value optimized out>,
toskew=<value optimized out>, pp=0x806d000 <Address 0x806d000 out of bounds>) at tif_getimage.c:1986
1986 YCbCrtoRGB(*cp++, pp[0]);
(gdb) bt
#0 0x008a7e15 in putcontig8bitYCbCr11tile (img=<value optimized out>, cp=0xb7fed420, x=<value optimized out>,
y=<value optimized out>, w=<value optimized out>, h=<value optimized out>, fromskew=<value optimized out>,
toskew=<value optimized out>, pp=0x806d000 <Address 0x806d000 out of bounds>) at tif_getimage.c:1986
#1 0x008aa52e in gtTileContig (img=<value optimized out>, raster=<value optimized out>, w=<value optimized out>,
h=<value optimized out>) at tif_getimage.c:629
#2 0x008a7103 in TIFFRGBAImageGet (img=<value optimized out>, raster=<value optimized out>, w=<value optimized out>,
h=<value optimized out>) at tif_getimage.c:461
#3 0x008ac750 in TIFFReadRGBAImageOriented (tif=<value optimized out>, rwidth=<value optimized out>,
rheight=<value optimized out>, raster=<value optimized out>, orientation=<value optimized out>,
stop=<value optimized out>) at tif_getimage.c:480
#4 0x080495c8 in cvt_whole_image (out=<value optimized out>, in=<value optimized out>) at tiff2rgba.c:401
#5 tiffcvt (out=<value optimized out>, in=<value optimized out>) at tiff2rgba.c:519
#6 main (out=<value optimized out>, in=<value optimized out>) at tiff2rgba.c:115
This may be related to bug #583081, however patches linked there do not address this problem.
Comment 4RHEL Program Management
2010-06-11 14:13:06 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
inclusion.
Created attachment 423329[details]
patch
Specifically, what we need is this patch, which duplicates into PickContigCase() a safety check that already existed in PickSeparateCase().
Comment 15releng-rhel@redhat.com
2010-11-10 21:04:39 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.