Bug 1581485 (CVE-2017-18272)

Summary: CVE-2017-18272 ImageMagick: use-after-free in ReadOneMNGImage function in coders/png.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX 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: 2019-06-10 10:26:18 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: 1581487, 1581490, 1585901    
Bug Blocks: 1581491    

Description Laura Pardo 2018-05-22 22:44:20 UTC
A flaw was found in ImageMagick 7.0.7-16 Q16 x86_64 2017-12-25, there is a use-after-free in ReadOneMNGImage in coders/png.c, which allows attackers to cause a denial of service via a crafted MNG image file that is mishandled in an MngInfoDiscardObject call.


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

Patch:
https://github.com/ImageMagick/ImageMagick/commit/93d029b70ac766ce0b5d7261a2dd334535f48038

Comment 1 Laura Pardo 2018-05-22 22:46:14 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1581487]

Comment 3 Pedro Yóssis Silva Barbosa 2018-06-05 04:16:11 UTC
The ReadOneMNGImage function is included in recent versions of ImageMagick only.

Comment 4 Pedro Yóssis Silva Barbosa 2018-06-05 04:16:19 UTC
Statement:

This issue did not affect the versions of ImageMagick as shipped with Red Hat Enterprise Linux 5, 6, and 7.