Bug 1757779 (CVE-2019-14980) - CVE-2019-14980 ImageMagick: use-after-free in magick/blob.c resulting in a denial of service
Summary: CVE-2019-14980 ImageMagick: use-after-free in magick/blob.c resulting in a de...
Alias: CVE-2019-14980
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1763761 1764360
Blocks: 1757780
TreeView+ depends on / blocked
Reported: 2019-10-02 12:43 UTC by Guilherme de Almeida Suckevicz
Modified: 2020-03-31 22:35 UTC (History)
4 users (show)

Fixed In Version: ImageMagick 6.9.10-42, ImageMagick 7.0.8-42
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-03-31 22:35:31 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:1180 0 None None None 2020-03-31 19:32:58 UTC

Description Guilherme de Almeida Suckevicz 2019-10-02 12:43:08 UTC
In ImageMagick 7.x before 7.0.8-42 and 6.x before 6.9.10-42, there is a use after free vulnerability in the UnmapBlob function that allows an attacker to cause a denial of service by sending a crafted file.


Comment 1 Guilherme de Almeida Suckevicz 2019-10-21 14:38:16 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1763761]

Comment 3 Marco Benatto 2019-10-23 15:31:59 UTC
Upstream commit for this issue:

Comment 5 Marco Benatto 2019-10-28 14:35:27 UTC
There's an issue in ImageMagick versions before before 6.9.10-42. The DetachBlob() function is responsible for clean out blob_info structure, one if its steps is to unmap from memory any file related to blob's data using UnmapBlob() function. The UnamapBlob() will further call munmap() causing the region mapped into blob_info->data to be removed from process's address space, after the unmapping DetachBlob() doesn't set data pointer to NULL and returns it pointing to the old address. An attacker may leverage this both via a crafted file or API by triggering a User-after-free issue, leading to DoS, memory corruption or heap's data leak.

Comment 6 Michael Cronenworth 2019-10-28 14:44:49 UTC
Please update your script to check the Fedora version prior to opening a bug.

Fedora ships 6.9.10-67 and was pushed October 4th. Prior to that Fedora had 6.9.10-65 that was shipped September 21st.

Comment 7 errata-xmlrpc 2020-03-31 19:32:57 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:35:31 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):


Note You need to log in before you can comment on or make changes to this bug.