Oracle Linux 8 : rust-toolset:ol8 (ELSA-2022-1894)

medium Nessus Plugin ID 161276


The remote Oracle Linux host is missing a security update.


The remote Oracle Linux 8 host has packages installed that are affected by a vulnerability as referenced in the ELSA-2022-1894 advisory.

- 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. (CVE-2022-21658)

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


Update the affected packages.

See Also

Plugin Details

Severity: Medium

ID: 161276

File Name: oraclelinux_ELSA-2022-1894.nasl

Version: 1.2

Type: local

Agent: unix

Published: 5/18/2022

Updated: 5/18/2022

Supported Sensors: Frictionless Assessment Agent, Nessus Agent

Risk Information


Risk Factor: Medium

Score: 6.7


Risk Factor: Low

Base Score: 3.3

Temporal Score: 2.4

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

Temporal Vector: E:U/RL:OF/RC:C

CVSS Score Source: CVE-2022-21658


Risk Factor: Medium

Base Score: 6.3

Temporal Score: 5.5

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

Temporal Vector: E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:oracle:linux:8, p-cpe:/a:oracle:linux:cargo, p-cpe:/a:oracle:linux:cargo-doc, p-cpe:/a:oracle:linux:clippy, p-cpe:/a:oracle:linux:rls, p-cpe:/a:oracle:linux:rust, p-cpe:/a:oracle:linux:rust-analysis, p-cpe:/a:oracle:linux:rust-debugger-common, p-cpe:/a:oracle:linux:rust-doc, p-cpe:/a:oracle:linux:rust-gdb, p-cpe:/a:oracle:linux:rust-lldb, p-cpe:/a:oracle:linux:rust-src, p-cpe:/a:oracle:linux:rust-std-static, p-cpe:/a:oracle:linux:rust-std-static-wasm32-unknown-unknown, p-cpe:/a:oracle:linux:rust-std-static-wasm32-wasi, p-cpe:/a:oracle:linux:rust-toolset, p-cpe:/a:oracle:linux:rustfmt

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

Exploit Ease: No known exploits are available

Patch Publication Date: 5/17/2022

Vulnerability Publication Date: 1/20/2022

Reference Information

CVE: CVE-2022-21658