Bug 1624957 (CVE-2018-16329)

Summary: CVE-2018-16329 ImageMagick: NULL pointer dereference in GetMagickProperty function in MagickCore/property.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA 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: 2021-10-25 22:17:28 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: 1624958, 1630392    
Bug Blocks: 1624959    

Description Laura Pardo 2018-09-03 17:04:14 UTC
A flaw was found in ImageMagick before 7.0.8-8, a NULL pointer dereference exists in the GetMagickProperty function in MagickCore/property.c.


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

Comment 1 Laura Pardo 2018-09-03 17:04:35 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1624958]

Comment 4 Riccardo Schirone 2018-09-18 13:50:59 UTC
GetMagickProperty function in MagickCore/property.c only checks whether `image` or `image_info` are not NULL, but when later it uses the `image` pointer it doesn't check if it is actually accessible or not.

Comment 6 Riccardo Schirone 2018-09-18 13:55:33 UTC
Statement:

This issue did not affect the versions of ImageMagick as shipped with Red Hat Enterprise Linux 5 as they did not include the vulnerable code.

Comment 8 Riccardo Schirone 2020-04-15 10:30:47 UTC
Upstream patch ImageMagick6:
https://github.com/ImageMagick/ImageMagick6/commit/5bf7ff59c8ada957d6a681a0a2cc29f3813ad4bc