CVE Vulnerabilities

CVE-2020-15389

Use After Free

Published: Jun 29, 2020 | Modified: Nov 21, 2024
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/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.5 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

jp2/opj_decompress.c in OpenJPEG through 2.3.1 has a use-after-free that can be triggered if there is a mix of valid and invalid files in a directory operated on by the decompressor. Triggering a double-free may also be possible. This is related to calling opj_image_destroy twice.

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
OpenjpegUclouvain*2.3.1 (including)
Red Hat Enterprise Linux 8RedHatopenjpeg2-0:2.4.0-4.el8*
GhostscriptUbuntutrusty*
Openjpeg2Ubuntubionic*
Openjpeg2Ubuntudevel*
Openjpeg2Ubuntuesm-apps/bionic*
Openjpeg2Ubuntuesm-apps/xenial*
Openjpeg2Ubuntuesm-infra/focal*
Openjpeg2Ubuntufocal*
Openjpeg2Ubuntugroovy*
Openjpeg2Ubuntuhirsute*
Openjpeg2Ubuntuimpish*
Openjpeg2Ubuntujammy*
Openjpeg2Ubuntukinetic*
Openjpeg2Ubuntulunar*
Openjpeg2Ubuntutrusty*
Openjpeg2Ubuntuupstream*
Openjpeg2Ubuntuxenial*

Potential Mitigations

References