CVE Vulnerabilities

CVE-2019-15140

Use After Free

Published: Aug 18, 2019 | Modified: Nov 21, 2024
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
7.8 MODERATE
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

coders/mat.c in ImageMagick 7.0.8-43 Q16 allows remote attackers to cause a denial of service (use-after-free and application crash) or possibly have unspecified other impact by crafting a Matlab image file that is mishandled in ReadImage in MagickCore/constitute.c.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
ImagemagickImagemagick7.0.8-43-q16 (including)7.0.8-43-q16 (including)
Red Hat Enterprise Linux 7RedHatautotrace-0:0.31.1-38.el7*
Red Hat Enterprise Linux 7RedHatemacs-1:24.3-23.el7*
Red Hat Enterprise Linux 7RedHatImageMagick-0:6.9.10.68-3.el7*
Red Hat Enterprise Linux 7RedHatinkscape-0:0.92.2-3.el7*
ImagemagickUbuntubionic*
ImagemagickUbuntudevel*
ImagemagickUbuntudisco*
ImagemagickUbuntueoan*
ImagemagickUbuntuesm-apps/focal*
ImagemagickUbuntuesm-apps/jammy*
ImagemagickUbuntuesm-apps/noble*
ImagemagickUbuntuesm-infra-legacy/trusty*
ImagemagickUbuntuesm-infra/bionic*
ImagemagickUbuntuesm-infra/xenial*
ImagemagickUbuntufocal*
ImagemagickUbuntujammy*
ImagemagickUbuntukinetic*
ImagemagickUbuntulunar*
ImagemagickUbuntumantic*
ImagemagickUbuntunoble*
ImagemagickUbuntuoracular*
ImagemagickUbuntutrusty*
ImagemagickUbuntutrusty/esm*
ImagemagickUbuntuxenial*

Potential Mitigations

References