Skip to content
OpenAdvisories
Medium RLSA-2022:1894 1 CVE

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

Published May 10, 2022 · Updated Feb 5, 2026

Summary

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.

Fixed packages 2

ReleasePackageFixed in
Rocky Linux · 8 rust 0:1.58.1-1.module+el8.6.0+826+60f85975
Rocky Linux · 8 rust-toolset 0:1.58.1-1.module+el8.6.0+826+60f85975

Vulnerabilities 1

  • High 7.3
    CVE-2022-21658 Public exploit

    Race condition in std::fs::remove_dir_all in rustlang

    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 condi…

References

  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1980080
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=2041504