Bug 1767087 (CVE-2019-17541)

Summary: CVE-2019-17541 ImageMagick: Use after free in ReadICCProfile function in coders/jpeg.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: andreas, fedora, jhorak, mike, pahan, rdieter
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ImageMagick 6.9.10-55, ImageMagick 7.0.8-55 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 22:35:44 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: 1767090, 1770633    
Bug Blocks: 1767089    

Description Guilherme de Almeida Suckevicz 2019-10-30 16:26:21 UTC
ImageMagick before 7.0.8-55 has a use-after-free in DestroyStringInfo in MagickCore/string.c because the error manager is mishandled in coders/jpeg.c.

References:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15827
https://github.com/ImageMagick/ImageMagick/issues/1641

Upstream commit:
https://github.com/ImageMagick/ImageMagick/commit/39f226a9c137f547e12afde972eeba7551124493

Comment 1 Guilherme de Almeida Suckevicz 2019-10-30 16:27:03 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1767090]

Comment 2 Huzaifa S. Sidhpurwala 2019-11-11 01:34:41 UTC
Notes about GraphicsMagick:
Comparing the patch with the GraphicsMagick code, it seems like GraphicsMagick may not be affected by the flaw, because the original affected code is missing.

Comment 5 errata-xmlrpc 2020-03-31 19:33:01 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 6 Product Security DevOps Team 2020-03-31 22:35:44 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-2019-17541