Bug 1397755 (CVE-2016-9535)

Summary: CVE-2016-9535 libtiff: Predictor heap-buffer-overflow
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: erik-fedora, kabbott, mhradile, nforro, phracek, slawomir
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-02-01 10:19:23 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: 1397781, 1397782, 1397783, 1412078, 1412079, 1412080, 1412081    
Bug Blocks: 1389235    

Description Adam Mariš 2016-11-23 10:14:48 UTC
It was found that tif_predict.h and tif_predict.c in libtiff 4.0.6 have assertions that can lead to assertion failures in debug mode, or buffer overflows in release mode, when dealing with unusual tile size like YCbCr with subsampling.

Upstream patch:

https://github.com/vadz/libtiff/commit/83a4b92815ea04969d494416eaae3d4c6b338e4a#diff-5be5ce02d0dea67050d5b2a10102d1ba

Comment 1 Adam Mariš 2016-11-23 10:56:15 UTC
Created libtiff tracking bugs for this issue:

Affects: fedora-all [bug 1397781]

Comment 2 Adam Mariš 2016-11-23 10:56:21 UTC
Created mingw-libtiff tracking bugs for this issue:

Affects: fedora-all [bug 1397782]
Affects: epel-7 [bug 1397783]

Comment 6 Huzaifa S. Sidhpurwala 2017-01-16 06:40:36 UTC
(In reply to Miroslav Hradílek from comment #5)
> Hi Adam,
> 
> is the link correct?
> https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-9535 mentions the
> two commits:
> https://github.com/vadz/libtiff/commit/
> 3ca657a8793dd011bf869695d72ad31c779c3cc1
> https://github.com/vadz/libtiff/commit/
> 6a984bf7905c6621281588431f384e79d11a2e33

The above links are correct, the ones mentioned in comment #0 seem to be wrong.

Comment 7 errata-xmlrpc 2017-02-01 10:04:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7
  Red Hat Enterprise Linux 6

Via RHSA-2017:0225 https://rhn.redhat.com/errata/RHSA-2017-0225.html