Bug 996468 (CVE-2013-4244)

Summary: CVE-2013-4244 libtiff (gif2tiff): OOB Write in LZW decompressor
Product: [Other] Security Response Reporter: Huzaifa S. Sidhpurwala <huzaifas>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: gbarros, jkurik, phracek, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20130814,reported=20130813,source=redhat,cvss2=5.1/AV:N/AC:H/Au:N/C:P/I:P/A:P,rhel-5/libtiff=affected,rhel-6/libtiff=affected,rhel-7/libtiff=notaffected,fedora-all/libtiff=affected,fedora-all/mingw-libtiff=affected,cwe=CWE-787[auto]
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-27 14:24:16 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 996827, 996832, 996833, 1063460, 1063461, 1063464, 1063465    
Bug Blocks: 994449    
Attachments:
Description Flags
Proposed patch
none
Proposed patch (unified) none

Description Huzaifa S. Sidhpurwala 2013-08-13 04:29:55 EDT
An OOB Write was found in the LZW decompressor used in gif2tiff, a tool to convert GIF images to TIFF. A remote attacker could provide a specially-crafted GIF file that, when processed by gif2tiff, would cause gif2tiff to crash or, potentially, execute arbitrary code with the privileges of the user running gif2tiff.
Comment 2 Huzaifa S. Sidhpurwala 2013-08-14 00:27:41 EDT
Created attachment 786398 [details]
Proposed patch
Comment 3 Huzaifa S. Sidhpurwala 2013-08-14 00:28:40 EDT
Created attachment 786399 [details]
Proposed patch (unified)
Comment 5 Huzaifa S. Sidhpurwala 2013-08-14 01:51:11 EDT
Created libtiff tracking bugs for this issue:

Affects: fedora-all [bug 996832]
Comment 6 Huzaifa S. Sidhpurwala 2013-08-14 01:51:16 EDT
Created mingw-libtiff tracking bugs for this issue:

Affects: fedora-all [bug 996833]
Comment 8 Huzaifa S. Sidhpurwala 2013-08-16 01:17:12 EDT
This issue was addressed in libtiff upstream CVS repo, via the following commit:

revision 1.14
date: 2013-08-14 13:59:17 +0000;  author: fwarmerdam;  state: Exp;  lines: +5 -1;  commitid: zanjJMEQdd22zq1x;
fix possible OOB write in gif2tiff.c
Comment 9 Fedora Update System 2013-09-06 21:25:51 EDT
libtiff-4.0.3-9.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 10 Fedora Update System 2013-09-18 08:58:40 EDT
libtiff-4.0.3-9.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 13 Murray McAllister 2014-02-11 00:29:59 EST
Acknowledgements:

This issue was discovered by Huzaifa Sidhpurwala of the Red Hat Security Response Team.
Comment 14 errata-xmlrpc 2014-02-27 13:35:04 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2014:0223 https://rhn.redhat.com/errata/RHSA-2014-0223.html
Comment 15 errata-xmlrpc 2014-02-27 13:35:53 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2014:0222 https://rhn.redhat.com/errata/RHSA-2014-0222.html
Comment 16 Vincent Danen 2014-02-27 14:24:16 EST
Statement:

(none)