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

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

Name Vendor Start Version End Version
Libarchive Libarchive * 3.4.0 (excluding)
Red Hat Enterprise Linux 7 RedHat libarchive-0:3.1.2-14.el7_7 *
Red Hat Enterprise Linux 8 RedHat libarchive-0:3.3.2-8.el8_1 *
Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions RedHat libarchive-0:3.3.2-4.el8_0 *
Libarchive Ubuntu bionic *
Libarchive Ubuntu disco *
Libarchive Ubuntu esm-infra-legacy/trusty *
Libarchive Ubuntu esm-infra/bionic *
Libarchive Ubuntu esm-infra/xenial *
Libarchive Ubuntu trusty *
Libarchive Ubuntu trusty/esm *
Libarchive Ubuntu xenial *

Potential Mitigations

References