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
root.io logo minimus.io logo echo.ai logo

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.

Affected Software

NameVendorStart VersionEnd Version
LibarchiveLibarchive3.1.0 (including)3.4.0 (excluding)
Red Hat Enterprise Linux 7RedHatlibarchive-0:3.1.2-12.el7*
Red Hat Enterprise Linux 8RedHatlibarchive-0:3.3.2-7.el8*
LibarchiveUbuntubionic*
LibarchiveUbuntucosmic*
LibarchiveUbuntudevel*
LibarchiveUbuntuesm-infra-legacy/trusty*
LibarchiveUbuntuesm-infra/bionic*
LibarchiveUbuntuesm-infra/xenial*
LibarchiveUbuntutrusty*
LibarchiveUbuntutrusty/esm*
LibarchiveUbuntuxenial*

Potential Mitigations

References