Bug 1594339 (CVE-2018-12600)

Summary: CVE-2018-12600 ImageMagick: out of bounds write ReadDIBImage and WriteDIBImage in coders/dib.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jhorak, mike, pahan, rschiron
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: 2020-03-31 22:32:36 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: 1594421, 1594423, 1611557    
Bug Blocks: 1594340    

Description Laura Pardo 2018-06-22 16:38:52 UTC
A flaw was found in ImageMagick 7.0.8-3 Q16, ReadDIBImage and WriteDIBImage in coders/dib.c allow attackers to cause an out of bounds write via a crafted file.


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

Patch:
https://github.com/ImageMagick/ImageMagick6/commit/ae71c12bbaa34d942e036824ff389c22b7dacade
https://github.com/ImageMagick/ImageMagick/commit/921f208c2ea3cc45847f380257f270ff424adfff

Comment 1 Laura Pardo 2018-06-22 21:34:59 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1594421]

Comment 4 Riccardo Schirone 2018-08-02 11:03:07 UTC
When writing a DIB file, ImageMagick incorrectly allocates the pixels array on the heap, using the wrong size. When converting a crafted image file to the DIB format, this flaw could be used to write beyond the limits, overwriting other data on the heap and causing a Denial of Service or other unspecified effects.

Comment 6 errata-xmlrpc 2020-03-31 19:31:46 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 7 Product Security DevOps Team 2020-03-31 22:32:36 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-12600