CVE Vulnerabilities

CVE-2019-18408

Use After Free

Published: Oct 24, 2019 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
8.1 IMPORTANT
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

archive_read_format_rar_read_data in archive_read_support_format_rar.c in libarchive before 3.4.0 has a use-after-free in a certain ARCHIVE_FAILED situation, related to Ppmd7_DecodeSymbol.

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
LibarchiveLibarchive*3.4.0 (excluding)
Red Hat Enterprise Linux 7RedHatlibarchive-0:3.1.2-14.el7_7*
Red Hat Enterprise Linux 8RedHatlibarchive-0:3.3.2-8.el8_1*
Red Hat Enterprise Linux 8.0 Update Services for SAP SolutionsRedHatlibarchive-0:3.3.2-4.el8_0*
LibarchiveUbuntubionic*
LibarchiveUbuntudisco*
LibarchiveUbuntuesm-infra-legacy/trusty*
LibarchiveUbuntuesm-infra/bionic*
LibarchiveUbuntuesm-infra/xenial*
LibarchiveUbuntutrusty*
LibarchiveUbuntutrusty/esm*
LibarchiveUbuntuxenial*

Potential Mitigations

References