Amazon Linux 2 : LibRaw (ALAS-2023-2256)

high Nessus Plugin ID 181711

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of LibRaw installed on the remote host is prior to 0.19.4-1. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2-2023-2256 advisory.

Buffer Overflow vulnerability in LibRaw::stretch() function in libraw\src\postprocessing\aspect_ratio.cpp.
(CVE-2020-22628)

In LibRaw, there is an out-of-bounds write vulnerability within the new_node() function (libraw\src\x3f\x3f_utils_patched.cpp) that can be triggered via a crafted X3F file. (CVE-2020-35530)

In LibRaw, an out-of-bounds read vulnerability exists within the get_huffman_diff() function (libraw\src\x3f\x3f_utils_patched.cpp) when reading data from an image file. (CVE-2020-35531)

In LibRaw, an out-of-bounds read vulnerability exists within the simple_decode_row() function (libraw\src\x3f\x3f_utils_patched.cpp) which can be triggered via an image with a large row_stride field.
(CVE-2020-35532)

Buffer Overflow vulnerability in LibRaw linux/unix v0.20.0 allows attacker to escalate privileges via the LibRaw_buffer_datastream::gets(char*, int) in /src/libraw/src/libraw_datastream.cpp. (CVE-2021-32142)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update LibRaw' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2023-2256.html

https://alas.aws.amazon.com/cve/html/CVE-2020-22628.html

https://alas.aws.amazon.com/cve/html/CVE-2020-35530.html

https://alas.aws.amazon.com/cve/html/CVE-2020-35531.html

https://alas.aws.amazon.com/cve/html/CVE-2020-35532.html

https://alas.aws.amazon.com/cve/html/CVE-2021-32142.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: High

ID: 181711

File Name: al2_ALAS-2023-2256.nasl

Version: 1.2

Type: local

Agent: unix

Published: 9/20/2023

Updated: 12/11/2024

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2021-32142

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:libraw-debuginfo, p-cpe:/a:amazon:linux:libraw-static, p-cpe:/a:amazon:linux:libraw, p-cpe:/a:amazon:linux:libraw-devel

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/13/2023

Vulnerability Publication Date: 9/1/2022

Reference Information

CVE: CVE-2020-22628, CVE-2020-35530, CVE-2020-35531, CVE-2020-35532, CVE-2021-32142