Amazon Linux AMI update for libarchive

Published: 2019-10-10
Severity Medium
Patch available YES
Number of vulnerabilities 5
CVE ID CVE-2017-14503
CVE-2018-1000878
CVE-2018-1000877
CVE-2019-1000019
CVE-2019-1000020
CWE ID CWE-125
CWE-416
CWE-415
CWE-400
Exploitation vector Network
Public exploit Public exploit code for vulnerability #5 is available.
Vulnerable software Amazon Linux AMI Subscribe
Vendor Amazon Web Services, Inc.

Security Advisory

1) Out-of-bounds read

Severity: Low

CVSSv3: 3.4 [CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2017-14503

CWE-ID: CWE-125 - Out-of-bounds Read

Description

The vulnerability allows a remote attacker to cause DoS condition on the target system.

The vulnerability exists due to out-of-bounds read within lha_read_data_none() in archive_read_support_format_lha.c when extracting a specially crafted lha archive. A remote attacker can trigger an out-of-bounds read, related to lha_crc16 and cause the service to crash.

Mitigation

Update the affected packages:

i686:
    bsdcpio-3.1.2-12.12.amzn1.i686
    libarchive-3.1.2-12.12.amzn1.i686
    libarchive-debuginfo-3.1.2-12.12.amzn1.i686
    bsdtar-3.1.2-12.12.amzn1.i686
    libarchive-devel-3.1.2-12.12.amzn1.i686

src:
    libarchive-3.1.2-12.12.amzn1.src

x86_64:
    bsdcpio-3.1.2-12.12.amzn1.x86_64
    libarchive-3.1.2-12.12.amzn1.x86_64
    libarchive-devel-3.1.2-12.12.amzn1.x86_64
    libarchive-debuginfo-3.1.2-12.12.amzn1.x86_64
    bsdtar-3.1.2-12.12.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: 2017.03

CPE External links

https://alas.aws.amazon.com/ALAS-2019-1308.html

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Use-after-free error

Severity: Low

CVSSv3: 5.7 [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C] [PCI]

CVE-ID: CVE-2018-1000878

CWE-ID: CWE-416 - Use After Free

Description

The vulnerability allows a remote attacker to cause DoS condition.

The vulnerability exists due to use-after-free error in RAR decoder - libarchive/archive_read_support_format_rar.c. A remote attacker can trick the victim into opening a specially crafted RAR archive and cause the service to crash.

Mitigation

Update the affected packages:

i686:
    bsdcpio-3.1.2-12.12.amzn1.i686
    libarchive-3.1.2-12.12.amzn1.i686
    libarchive-debuginfo-3.1.2-12.12.amzn1.i686
    bsdtar-3.1.2-12.12.amzn1.i686
    libarchive-devel-3.1.2-12.12.amzn1.i686

src:
    libarchive-3.1.2-12.12.amzn1.src

x86_64:
    bsdcpio-3.1.2-12.12.amzn1.x86_64
    libarchive-3.1.2-12.12.amzn1.x86_64
    libarchive-devel-3.1.2-12.12.amzn1.x86_64
    libarchive-debuginfo-3.1.2-12.12.amzn1.x86_64
    bsdtar-3.1.2-12.12.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: 2017.03

CPE External links

https://alas.aws.amazon.com/ALAS-2019-1308.html

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Double-free error

Severity: Low

CVSSv3: 5.7 [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C] [PCI]

CVE-ID: CVE-2018-1000877

CWE-ID: CWE-415 - Double Free

Description

The vulnerability allows a remote attacker to cause DoS condition.

The vulnerability exists due to double-free error in RAR decoder - libarchive/archive_read_support_format_rar.c, parse_codes(), realloc(rar->lzss.window, new_size) with new_size = 0. A remote attacker can trick the victim into opening a specially crafted RAR archive and cause the service to crash.

Mitigation

Update the affected packages:

i686:
    bsdcpio-3.1.2-12.12.amzn1.i686
    libarchive-3.1.2-12.12.amzn1.i686
    libarchive-debuginfo-3.1.2-12.12.amzn1.i686
    bsdtar-3.1.2-12.12.amzn1.i686
    libarchive-devel-3.1.2-12.12.amzn1.i686

src:
    libarchive-3.1.2-12.12.amzn1.src

x86_64:
    bsdcpio-3.1.2-12.12.amzn1.x86_64
    libarchive-3.1.2-12.12.amzn1.x86_64
    libarchive-devel-3.1.2-12.12.amzn1.x86_64
    libarchive-debuginfo-3.1.2-12.12.amzn1.x86_64
    bsdtar-3.1.2-12.12.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: 2017.03

CPE External links

https://alas.aws.amazon.com/ALAS-2019-1308.html

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

4) Out-of-bounds read

Severity: Medium

CVSSv3: 5.7 [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C] [PCI]

CVE-ID: CVE-2019-1000019

CWE-ID: CWE-125 - Out-of-bounds Read

Description

The vulnerability allows a remote attacker to perform denial of service (DoS) attack.

The vulnerability exists due to a boundary condition in the header_bytes() function in  archive_read_support_format_7zip.c when decompressing 7zip archives. A remote attacker can create a specially crafted 7zip file, trick the victim into opening it, trigger out-of-bounds read error and crash the affected application.

Mitigation

Update the affected packages:

i686:
    bsdcpio-3.1.2-12.12.amzn1.i686
    libarchive-3.1.2-12.12.amzn1.i686
    libarchive-debuginfo-3.1.2-12.12.amzn1.i686
    bsdtar-3.1.2-12.12.amzn1.i686
    libarchive-devel-3.1.2-12.12.amzn1.i686

src:
    libarchive-3.1.2-12.12.amzn1.src

x86_64:
    bsdcpio-3.1.2-12.12.amzn1.x86_64
    libarchive-3.1.2-12.12.amzn1.x86_64
    libarchive-devel-3.1.2-12.12.amzn1.x86_64
    libarchive-debuginfo-3.1.2-12.12.amzn1.x86_64
    bsdtar-3.1.2-12.12.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: 2017.03

CPE External links

https://alas.aws.amazon.com/ALAS-2019-1308.html

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

5) Resource exhaustion

Severity: Medium

CVSSv3: 5.9 [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C] [PCI]

CVE-ID: CVE-2019-1000020

CWE-ID: CWE-400 - Uncontrolled Resource Consumption ('Resource Exhaustion')

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to improper parsing of ISO9660 files. A remote attacker can  persuade a user to access an ISO9660, trigger an infinite loop condition and perform a denial of service (DoS) attack.

Mitigation

Update the affected packages:

i686:
    bsdcpio-3.1.2-12.12.amzn1.i686
    libarchive-3.1.2-12.12.amzn1.i686
    libarchive-debuginfo-3.1.2-12.12.amzn1.i686
    bsdtar-3.1.2-12.12.amzn1.i686
    libarchive-devel-3.1.2-12.12.amzn1.i686

src:
    libarchive-3.1.2-12.12.amzn1.src

x86_64:
    bsdcpio-3.1.2-12.12.amzn1.x86_64
    libarchive-3.1.2-12.12.amzn1.x86_64
    libarchive-devel-3.1.2-12.12.amzn1.x86_64
    libarchive-debuginfo-3.1.2-12.12.amzn1.x86_64
    bsdtar-3.1.2-12.12.amzn1.x86_64

Vulnerable software versions

Amazon Linux AMI: 2017.03

CPE External links

https://alas.aws.amazon.com/ALAS-2019-1308.html

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.