Bug 1410119 (CVE-2016-10094)

Summary: CVE-2016-10094 libtiff: Off-by-one error in t2p_readwrite_pdf_image_tile() causing heap buffer overflow
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dominik.mierzejewski, erik-fedora, nforro, phracek, sardella, slawomir, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-16 06:32:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1410123, 1410124, 1410125    
Bug Blocks: 1410122    

Description Adam Mariš 2017-01-04 14:14:34 UTC
An off-by-one error was found in t2p_readwrite_pdf_image_tile() that can lead to heap buffer overflow triggered by running tiff2pdf on crafted tiff file.

Upstream patch:

https://github.com/vadz/libtiff/commit/c7153361a4041260719b340f73f2f76b0969235c

Upstream bug:

http://bugzilla.maptools.org/show_bug.cgi?id=2640

CVE assignment:

http://seclists.org/oss-sec/2017/q1/3

Reproducer:

https://github.com/asarubbo/poc/blob/master/00112-libtiff-heapoverflow-_TIFFmemcpy

Comment 1 Adam Mariš 2017-01-04 14:19:27 UTC
Created libtiff tracking bugs for this issue:

Affects: fedora-all [bug 1410123]

Comment 2 Adam Mariš 2017-01-04 14:19:33 UTC
Created mingw-libtiff tracking bugs for this issue:

Affects: fedora-all [bug 1410124]
Affects: epel-7 [bug 1410125]