Bug 1627916 (CVE-2018-16749)

Summary: CVE-2018-16749 ImageMagick: reachable assertion in ReadOneJNGImage in coders/png.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA 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: 2020-03-31 22:33:16 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: 1627918, 1701535    
Bug Blocks: 1696300    

Description Pedro Sampaio 2018-09-11 21:18:23 UTC
In ImageMagick 7.0.7-29 and earlier, a missing NULL check in ReadOneJNGImage in coders/png.c allows an attacker to cause a denial of service (WriteBlob assertion failure and application exit) via a crafted file.

Upstream issue:

https://github.com/ImageMagick/ImageMagick/issues/1119

Upstream patch:

https://github.com/ImageMagick/ImageMagick6/commit/1007b98f8795ad4bea6bc5f68a32d83e982fdae4

Comment 1 Pedro Sampaio 2018-09-11 21:22:38 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1627918]

Comment 4 Riccardo Schirone 2019-04-19 13:01:26 UTC
Assertion in WriteBlob() is reachable because coders/png.c:ReadOneJNGImage() does not properly check if the image passed as parameter is NULL.

Comment 7 errata-xmlrpc 2020-03-31 19:31:58 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 8 Product Security DevOps Team 2020-03-31 22:33:16 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-16749