Bug 1552312 (CVE-2017-18209)

Summary: CVE-2017-18209 ImageMagick: NULL pointer dereference in GetOpenCLCachedFilesDirectory function in magick/opencl.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jhorak, mike, pahan
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-04-26 12:23:08 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: 1552313, 1572208    
Bug Blocks: 1552322    

Description Laura Pardo 2018-03-06 22:31:55 UTC
A flaw was found in ImageMagick. In the GetOpenCLCachedFilesDirectory function in magick/opencl.c in ImageMagick 7.0.7, a NULL pointer dereference vulnerability occurs because a memory allocation result is not checked, related to GetOpenCLCacheDirectory.

References:
https://github.com/ImageMagick/ImageMagick/issues/790

Patch:
https://github.com/ImageMagick/ImageMagick/commit/cca91aa1861818342e3d072bb0fad7dc4ffac24a
https://github.com/ImageMagick/ImageMagick/commit/6ac2858a87df6d645813e43928b4f01a3169ad3f

Comment 1 Laura Pardo 2018-03-06 22:32:14 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1552313]