Bug 1488443 (CVE-2017-14103)

Summary: CVE-2017-14103 GraphicsMagick: Use-after-free in ReadJNGImage and ReadOneJNGImage functions in coders/png.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: andreas, rdieter
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-08 03:24:09 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: 1475495, 1488444    
Bug Blocks:    

Description Pedro Sampaio 2017-09-05 12:05:31 UTC
The ReadJNGImage and ReadOneJNGImage functions in coders/png.c in
GraphicsMagick 1.3.26 do not properly manage image pointers after
certain error conditions, which allows remote attackers to conduct
use-after-free attacks via a crafted file, related to a ReadMNGImage
out-of-order CloseBlob call. 

NOTE: this vulnerability exists because of
an incomplete fix for CVE-2017-11403.

Upstream patch:

http://hg.code.sf.net/p/graphicsmagick/code/rev/98721124e51f

References:

https://bugzilla.novell.com/show_bug.cgi?id=1057000
https://blogs.gentoo.org/ago/2017/09/01/graphicsmagick-use-after-free-in-closeblob-blob-c-incomplete-fix-for-cve-2017-11403/

Comment 1 Pedro Sampaio 2017-09-05 12:05:50 UTC
Created GraphicsMagick tracking bugs for this issue:

Affects: epel-all [bug 1488444]

Comment 2 Andrej Nemec 2017-09-06 13:24:16 UTC
Created GraphicsMagick tracking bugs for this issue:

Affects: fedora-all [bug 1475495]

Comment 3 Product Security DevOps Team 2019-06-08 03:24:09 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.