Alibaba Cloud Linux 3 : 0061: rust-toolset:rhel8 (ALINUX3-SA-2021:0061)

critical Nessus Plugin ID 236569

Synopsis

The remote Alibaba Cloud Linux host is missing one or more security updates.

Description

The remote Alibaba Cloud Linux 3 host has packages installed that are affected by multiple vulnerabilities as referenced in the ALINUX3-SA-2021:0061 advisory.

Package updates are available for Alibaba Cloud Linux 3 that fix the following vulnerabilities:

CVE-2020-36317:
In the standard library in Rust before 1.49.0, String::retain() function has a panic safety problem. It allows creation of a non-UTF-8 Rust string when the provided closure panics. This bug could result in a memory safety violation when other string APIs assume that UTF-8 encoding is used on the same string.

CVE-2020-36323:
In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked.

CVE-2021-28875:
In the standard library in Rust before 1.50.0, read_to_end() does not validate the return value from Read in an unsafe context. This bug could lead to a buffer overflow.

CVE-2021-28876:
In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls
__iterator_get_unchecked() more than once for the same index when the underlying iterator panics (in certain conditions). This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

CVE-2021-28877:
In the standard library in Rust before 1.51.0, the Zip implementation calls __iterator_get_unchecked() for the same index more than once when nested. This bug can lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

CVE-2021-28878:
In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain conditions) when next_back() and next() are used together. This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

CVE-2021-28879:
In the standard library in Rust before 1.52.0, the Zip implementation can report an incorrect size due to an integer overflow. This bug can lead to a buffer overflow when a consumed Zip iterator is used again.

CVE-2021-31162:
In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the element panics.

Tenable has extracted the preceding description block directly from the Alibaba Cloud Linux 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

Update the affected packages.

See Also

http://mirrors.aliyun.com/alinux/3/cve/alinux3-sa-20210061.xml

Plugin Details

Severity: Critical

ID: 236569

File Name: alinux3_sa_2021-0061.nasl

Version: 1.1

Type: local

Published: 5/14/2025

Updated: 5/14/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS Score Source: CVE-2021-31162

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

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

Vulnerability Information

CPE: p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:cargo, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rls, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust-lldb, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust-analysis, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust-gdb, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:clippy, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:cargo-debuginfo, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust-src, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust-debugsource, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:clippy-debuginfo, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:cargo-doc, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust-doc, cpe:/o:alibabacloud:alibaba_cloud_linux_3, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rls-debuginfo, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rustfmt-debuginfo, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust-std-static, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust-debugger-common, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rustfmt, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust-debuginfo

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/16/2021

Vulnerability Publication Date: 4/11/2021

Reference Information

CVE: CVE-2020-36317, CVE-2020-36323, CVE-2021-28875, CVE-2021-28876, CVE-2021-28877, CVE-2021-28878, CVE-2021-28879, CVE-2021-31162