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

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

Name Vendor Start Version End Version
Imagemagick Imagemagick 6.0 (including) 6.9.12-43 (excluding)
Imagemagick Imagemagick 7.0.0-0 (including) 7.1.0-28 (excluding)
Imagemagick Ubuntu devel *
Imagemagick Ubuntu esm-apps/jammy *
Imagemagick Ubuntu esm-apps/noble *
Imagemagick Ubuntu impish *
Imagemagick Ubuntu jammy *
Imagemagick Ubuntu kinetic *
Imagemagick Ubuntu lunar *
Imagemagick Ubuntu mantic *
Imagemagick Ubuntu noble *
Imagemagick Ubuntu oracular *
Imagemagick Ubuntu plucky *

Potential Mitigations

References