CVE Vulnerabilities

CVE-2022-1114

Use After Free

Published: Apr 29, 2022 | Modified: Nov 21, 2024
CVSS 3.x
7.1
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
CVSS 2.x
5.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:N/A:P
RedHat/V2
RedHat/V3
6.1 MODERATE
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A heap-use-after-free flaw was found in ImageMagicks RelinquishDCMInfo() function of dcm.c file. This vulnerability is triggered when an attacker passes a specially crafted DICOM image file to ImageMagick for conversion, potentially leading to information disclosure and a denial of service.

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
ImagemagickImagemagick6.0 (including)6.9.12-43 (excluding)
ImagemagickImagemagick7.0.0-0 (including)7.1.0-28 (excluding)
ImagemagickUbuntudevel*
ImagemagickUbuntuesm-apps/jammy*
ImagemagickUbuntuesm-apps/noble*
ImagemagickUbuntuimpish*
ImagemagickUbuntujammy*
ImagemagickUbuntukinetic*
ImagemagickUbuntulunar*
ImagemagickUbuntumantic*
ImagemagickUbuntunoble*
ImagemagickUbuntuoracular*
ImagemagickUbuntuplucky*
ImagemagickUbuntuquesting*

Potential Mitigations

References