Bug 1348153 (CVE-2016-5688)

Summary: CVE-2016-5688 ImageMagick: Heap overflow and random invalid memory writes in WPg parser
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, dmcphers, ethan, jhorak, jialiu, jokerman, lmeyer, mmccomas, nmurray, pahan, sardella, slawomir, tiwillia
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ImageMagick 7.0.1-4, ImageMagick 6.9.4-3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 00:53:10 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: 1348173    
Bug Blocks: 1348175    

Description Adam Mariš 2016-06-20 10:01:58 UTC
Several bugs in the WPG parser were found that could lead to a heap overflow and random invalid memory writes. These bugs only seem to appear when a memory limit is set.

Upstream patches:

https://github.com/ImageMagick/ImageMagick/commit/fc43974d34318c834fbf78570ca1a3764ed8c7d7
https://github.com/ImageMagick/ImageMagick/commit/aecd0ada163a4d6c769cec178955d5f3e9316f2f

External References:

https://blog.fuzzing-project.org/46-Various-invalid-memory-reads-in-ImageMagick-WPG,-DDS,-DCM.html

CVE assignment:

http://seclists.org/oss-sec/2016/q2/564

Comment 1 Adam Mariš 2016-06-20 10:37:13 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1348173]