ALAS2-2019-1325


Amazon Linux 2 Security Advisory: ALAS-2019-1325
Advisory Release Date: 2019-10-21 18:01 Pacific
Advisory Updated Date: 2019-10-23 23:48 Pacific
Severity: Medium

Issue Overview:

libarchive 3.3.2 suffers from an out-of-bounds read within lha_read_data_none() in archive_read_support_format_lha.c when extracting a specially crafted lha archive, related to lha_crc16.(CVE-2017-14503)

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.(CVE-2018-1000877)

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.(CVE-2018-1000878)

libarchive version commit bf9aec176c6748f0ee7a678c5f9f9555b9a757c1 onwards (release v3.0.2 onwards) contains a CWE-125: Out-of-bounds Read vulnerability in 7zip decompression, archive_read_support_format_7zip.c, header_bytes() that can result in a crash (denial of service). This attack appears to be exploitable via the victim opening a specially crafted 7zip file.(CVE-2019-1000019)

libarchive version commit 5a98dcf8a86364b3c2c469c85b93647dfb139961 onwards (version v2.8.0 onwards) contains a CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in ISO9660 parser, archive_read_support_format_iso9660.c, read_CE()/parse_rockridge() that can result in DoS by infinite loop. This attack appears to be exploitable via the victim opening a specially crafted ISO9660 file.(CVE-2019-1000020)


Affected Packages:

libarchive


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update libarchive to update your system.

New Packages:
aarch64:
    libarchive-3.1.2-12.amzn2.aarch64
    libarchive-devel-3.1.2-12.amzn2.aarch64
    bsdtar-3.1.2-12.amzn2.aarch64
    bsdcpio-3.1.2-12.amzn2.aarch64
    libarchive-debuginfo-3.1.2-12.amzn2.aarch64

i686:
    libarchive-3.1.2-12.amzn2.i686
    libarchive-devel-3.1.2-12.amzn2.i686
    bsdtar-3.1.2-12.amzn2.i686
    bsdcpio-3.1.2-12.amzn2.i686
    libarchive-debuginfo-3.1.2-12.amzn2.i686

src:
    libarchive-3.1.2-12.amzn2.src

x86_64:
    libarchive-3.1.2-12.amzn2.x86_64
    libarchive-devel-3.1.2-12.amzn2.x86_64
    bsdtar-3.1.2-12.amzn2.x86_64
    bsdcpio-3.1.2-12.amzn2.x86_64
    libarchive-debuginfo-3.1.2-12.amzn2.x86_64