Advisory

RLSA-2021:3063

Also known as: CVE-2020-36323, CVE-2021-28875, CVE-2021-28876, CVE-2021-28877, CVE-2021-28878, CVE-2021-28879, CVE-2021-31162

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.52.1). (BZ#1953002)

Security Fix(es):

  • rust: optimization for joining strings can cause uninitialized bytes to be exposed (CVE-2020-36323)
  • rust: heap-based buffer overflow in read_to_end() because it does not validate the return value from Read in an unsafe context (CVE-2021-28875)
  • rust: panic safety issue in Zip implementation (CVE-2021-28876)
  • rust: memory safety violation in Zip implementation for nested iter::Zips (CVE-2021-28877)
  • rust: memory safety violation in Zip implementation when next_back() and next() are used together (CVE-2021-28878)
  • rust: integer overflow in the Zip implementation can lead to a buffer overflow (CVE-2021-28879)
  • rust: double free in Vec::from_iter function if freeing the element panics (CVE-2021-31162)

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.

For information on usage, see Using Rust Toolset linked in the References section.

Severity

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

Dates

Published
2021-08-10 11:59 UTC
Modified
2026-02-05 01:30 UTC

Affected packages and fixes

rust

RPM packages (rpm) · Rocky Linux 8

Affected

  • introduced 0, fixed 0:1.52.1-1.module+el8.4.0+641+ca238f88 (ecosystem)

Fixed versions

0:1.52.1-1.module+el8.4.0+641+ca238f88

Fix

  • Fixed version 0:1.52.1-1.module+el8.4.0+641+ca238f88
    sudo dnf upgrade rust-0:1.52.1-1.module+el8.4.0+641+ca238f88

rust-toolset

RPM packages (rpm) · Rocky Linux 8

Affected

  • introduced 0, fixed 0:1.52.1-1.module+el8.4.0+641+ca238f88 (ecosystem)

Fixed versions

0:1.52.1-1.module+el8.4.0+641+ca238f88

Fix

  • Fixed version 0:1.52.1-1.module+el8.4.0+641+ca238f88
    sudo dnf upgrade rust-toolset-0:1.52.1-1.module+el8.4.0+641+ca238f88

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