Bug 1649385 (CVE-2018-19210)

Summary: CVE-2018-19210 libtiff: NULL pointer dereference in TIFFWriteDirectorySec function in tif_dirwrite.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: erik-fedora, mike, nforro, phracek, rh-spice-bugs
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: 2018-11-16 09:45: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:
Embargoed:
Bug Depends On: 1649387, 1649388, 1649389, 1649391, 1649392    
Bug Blocks: 1649390    

Description Laura Pardo 2018-11-13 14:41:15 UTC
In LibTIFF 4.0.9, there is a NULL pointer dereference in the TIFFWriteDirectorySec function in tif_dirwrite.c that will lead to a denial of service attack, as demonstrated by tiffset. 


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

Comment 1 Laura Pardo 2018-11-13 14:42:30 UTC
Created libtiff tracking bugs for this issue:

Affects: fedora-all [bug 1649387]


Created mingw-libtiff tracking bugs for this issue:

Affects: epel-7 [bug 1649388]
Affects: fedora-all [bug 1649389]

Comment 3 Huzaifa S. Sidhpurwala 2018-11-16 09:45:50 UTC
This is reproduce-able without ASAN builds as well. valgrind shows Null pointer deref with the following errors:

poc0: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each).
TIFFReadDirectory: Failed to read directory at offset 5356.

Running without valgrind yeilds segfault.

There is no upstream patch yet.