Bug 1348172 (CVE-2016-5691)

Summary: CVE-2016-5691 ImageMagick: Possible out-of-bounds write in ReadDCMImage()
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-7, ImageMagick 6.9.4-5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 00:53:20 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:36:03 UTC
Possible out-of-bounds write in ReadDCMImage() function due to lack of validation of pixel.red, pixel.green, and pixel.blue.

Upstream fix:

https://github.com/ImageMagick/ImageMagick/commit/5511ef530576ed18fd636baa3bb4eda3d667665d

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:37 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1348173]