CVE Vulnerabilities

CVE-2018-1000878

Use After Free

Published: Dec 20, 2018 | Modified: Nov 21, 2024
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
7 MODERATE
CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM

libarchive version commit 416694915449219d505531b1096384f3237dd6cc onwards (release v3.1.0 onwards) contains a CWE-416: Use After Free vulnerability in RAR decoder - libarchive/archive_read_support_format_rar.c that can result in Crash/DoS - it is unknown if RCE is possible. This attack appear to be exploitable via the victim must open a specially crafted RAR archive.

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.1.0 (including) 3.4.0 (excluding)
Red Hat Enterprise Linux 7 RedHat libarchive-0:3.1.2-12.el7 *
Red Hat Enterprise Linux 8 RedHat libarchive-0:3.3.2-7.el8 *
Libarchive Ubuntu bionic *
Libarchive Ubuntu cosmic *
Libarchive Ubuntu devel *
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