Advisory

RLSA-2022:1894

Also known as: CVE-2022-21658

Summary

Moderate: rust-toolset:rhel8 security, bug fix, and enhancement update

Details

Rust Toolset provides the Rust programming language compiler rustc, the cargo build tool and dependency manager, and required libraries.

The following packages have been upgraded to a later upstream version: rust (1.58.0). (BZ#2002883)

Security Fix(es):

  • rust: Race condition in remove_dir_all leading to removal of files outside of the directory being removed (CVE-2022-21658)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 8.6 Release Notes linked from the References section.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N

Dates

Published
2022-05-10 08:06 UTC
Modified
2026-02-05 00:15 UTC

Affected packages and fixes

rust

RPM packages (rpm) · Rocky Linux 8

Affected

  • introduced 0, fixed 0:1.58.1-1.module+el8.6.0+826+60f85975 (ecosystem)

Fixed versions

0:1.58.1-1.module+el8.6.0+826+60f85975

Fix

  • Fixed version 0:1.58.1-1.module+el8.6.0+826+60f85975
    sudo dnf upgrade rust-0:1.58.1-1.module+el8.6.0+826+60f85975

rust-toolset

RPM packages (rpm) · Rocky Linux 8

Affected

  • introduced 0, fixed 0:1.58.1-1.module+el8.6.0+826+60f85975 (ecosystem)

Fixed versions

0:1.58.1-1.module+el8.6.0+826+60f85975

Fix

  • Fixed version 0:1.58.1-1.module+el8.6.0+826+60f85975
    sudo dnf upgrade rust-toolset-0:1.58.1-1.module+el8.6.0+826+60f85975

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Rocky Linux errata (Apollo)

Rocky Linux errata, Rocky Enterprise Software Foundation.

Sources & licences