Alibaba Cloud Linux 3 : 0217: rust-toolset:rhel8 (ALINUX3-SA-2022:0217)

medium Nessus Plugin ID 236333

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 a vulnerability as referenced in the ALINUX3-SA-2022:0217 advisory.

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

CVE-2022-21658:
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency. The Rust Security Response WG was notified that the `std::fs::remove_dir_all` standard library function is vulnerable a race condition enabling symlink following (CWE-363). An attacker could use this security issue to trick a privileged program into deleting files and directories the attacker couldn't otherwise access or delete. Rust 1.0.0 through Rust 1.58.0 is affected by this vulnerability with 1.58.1 containing a patch. Note that the following build targets don't have usable APIs to properly mitigate the attack, and are thus still vulnerable even with a patched toolchain: macOS before version 10.10 (Yosemite) and REDOX. We recommend everyone to update to Rust 1.58.1 as soon as possible, especially people developing programs expected to run in privileged contexts (including system daemons and setuid binaries), as those have the highest risk of being affected by this. Note that adding checks in your codebase before calling remove_dir_all will not mitigate the vulnerability, as they would also be vulnerable to race conditions like remove_dir_all itself. The existing mitigation is working as intended outside of race conditions.

Tenable has extracted the preceding description block directly from the Alibaba Cloud Linux security advisory.

Note that Nessus has not tested for this issue 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-20220217.xml

Plugin Details

Severity: Medium

ID: 236333

File Name: alinux3_sa_2022-0217.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.0

CVSS v2

Risk Factor: Low

Base Score: 3.3

Temporal Score: 2.6

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

CVSS Score Source: CVE-2022-21658

CVSS v3

Risk Factor: Medium

Base Score: 6.3

Temporal Score: 5.7

Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/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, p-cpe:/a:alibabacloud:alibaba_cloud_linux_3:rust-std-static-wasm32-unknown-unknown, 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-wasm32-wasi, 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: 12/7/2022

Vulnerability Publication Date: 1/20/2022

Reference Information

CVE: CVE-2022-21658