Bug 952158 - (CVE-2013-1960) CVE-2013-1960 libtiff (tiff2pdf): Heap-based buffer overflow in t2_process_jpeg_strip()
CVE-2013-1960 libtiff (tiff2pdf): Heap-based buffer overflow in t2_process_jp...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20130502,repor...
: Security
Depends On: 958609 958610 1063460 1063461 1063464 1063465
Blocks: 994449
  Show dependency treegraph
 
Reported: 2013-04-15 06:14 EDT by Huzaifa S. Sidhpurwala
Modified: 2016-03-04 05:43 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-02-27 14:33:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch against CVS head (works for 3.9 too) (5.26 KB, patch)
2013-04-16 15:05 EDT, Tom Lane
no flags Details | Diff
patch against 3.8.2 (5.05 KB, patch)
2013-04-16 15:06 EDT, Tom Lane
no flags Details | Diff

  None (edit)
Description Huzaifa S. Sidhpurwala 2013-04-15 06:14:41 EDT
A heap-based buffer overflow flaw was found in the way tiff2pdf, a TIFF image to a PDF document conversion tool, of libtiff, a library of functions for manipulating TIFF (Tagged Image File Format) image format files, performed write of TIFF image content into particular PDF document file, in the tp_process_jpeg_strip() function. A remote attacker could provide a specially-crafted TIFF image format file, that when processed by tiff2pdf would lead to tiff2pdf executable crash or, potentially, arbitrary code execution with the privileges of the user running the tiff2pdf binary.

Acknowledgements:

Red Hat would like to thank Emmanuel Bouillon (NCI Agency) for reporting this issue.
Comment 3 Tom Lane 2013-04-16 15:04:52 EDT
The attached patches upgrade t2p_process_jpeg_strip's JPEG-marker-parsing logic to some minimal semblance of sanity.  It's still the case that what it's trying to do is fundamentally wrong/broken, but at least now it won't dump core on its way to producing a non-standards-compliant output file.
Comment 4 Tom Lane 2013-04-16 15:05:37 EDT
Created attachment 736500 [details]
patch against CVS head (works for 3.9 too)
Comment 5 Tom Lane 2013-04-16 15:06:11 EDT
Created attachment 736501 [details]
patch against 3.8.2
Comment 6 Huzaifa S. Sidhpurwala 2013-04-16 23:55:28 EDT
This issue has been assigned CVE-2013-1960
Comment 11 Huzaifa S. Sidhpurwala 2013-05-01 23:57:40 EDT
Created libtiff tracking bugs for this issue

Affects: fedora-all [bug 958609]
Comment 12 Huzaifa S. Sidhpurwala 2013-05-01 23:57:43 EDT
Created mingw-libtiff tracking bugs for this issue

Affects: fedora-all [bug 958610]
Comment 13 Huzaifa S. Sidhpurwala 2013-05-02 00:29:46 EDT
Public via:

http://seclists.org/oss-sec/2013/q2/254
Comment 14 Tom Lane 2013-05-02 10:55:32 EDT
Patches pushed to upstream CVS.
Comment 15 Fedora Update System 2013-05-13 21:23:35 EDT
libtiff-4.0.3-6.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 16 Fedora Update System 2013-05-18 22:40:14 EDT
libtiff-3.9.7-2.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 21 errata-xmlrpc 2014-02-27 13:34:07 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 22 errata-xmlrpc 2014-02-27 13:35:32 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 23 Vincent Danen 2014-02-27 14:33:57 EST
Statement:

(none)

Note You need to log in before you can comment on or make changes to this bug.