CVE Vulnerabilities

CVE-2018-1000877

Double 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-415: Double Free vulnerability in RAR decoder - libarchive/archive_read_support_format_rar.c, parse_codes(), realloc(rar->lzss.window, new_size) with new_size = 0 that can result in Crash/DoS. This attack appear to be exploitable via the victim must open a specially crafted RAR archive.

Weakness

The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.

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 trusty *
Libarchive Ubuntu xenial *

Potential Mitigations

References