Bug 1609936 (CVE-2018-14435)

Summary: CVE-2018-14435 ImageMagick: memory leak in DecodeImage in coders/pcd.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: ImageMagick 6.9.10-5, ImageMagick 7.0.8-5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 22:33:01 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: 1609937, 1609938, 1696381    
Bug Blocks: 1696293    

Comment 1 Laura Pardo 2018-07-30 21:16:11 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1609937]

Comment 3 Scott Gayou 2019-04-04 17:01:04 UTC
Flaw is a failure to free memory before an exception is thrown. It looks like the exception macro just returns false and logs, thus, memory leak. (I don't believe the ImageMagick exception terminates immediately, but I did not test it.)

```
           default:
           {
             ThrowBinaryException(CorruptImageError,"CorruptImage",
               image->filename);
           }
```

All Red Hat Enterprise Linux versions look impacted by this minor memory leak.

Comment 5 errata-xmlrpc 2020-03-31 19:31:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:1180 https://access.redhat.com/errata/RHSA-2020:1180

Comment 6 Product Security DevOps Team 2020-03-31 22:33:01 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2018-14435