Rocky Linux 8 : rust-toolset:rhel8 (RLSA-2021:3063)

critical Nessus Plugin ID 157792

Synopsis

The remote Rocky Linux host is missing one or more security updates.

Description

The remote Rocky Linux 8 host has packages installed that are affected by multiple vulnerabilities as referenced in the RLSA-2021:3063 advisory.

- In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked. (CVE-2020-36323)

- In the standard library in Rust before 1.50.0, read_to_end() does not validate the return value from Read in an unsafe context. This bug could lead to a buffer overflow. (CVE-2021-28875)

- In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls
__iterator_get_unchecked() more than once for the same index when the underlying iterator panics (in certain conditions). This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait. (CVE-2021-28876)

- In the standard library in Rust before 1.51.0, the Zip implementation calls __iterator_get_unchecked() for the same index more than once when nested. This bug can lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait. (CVE-2021-28877)

- In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain conditions) when next_back() and next() are used together. This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait. (CVE-2021-28878)

- In the standard library in Rust before 1.52.0, the Zip implementation can report an incorrect size due to an integer overflow. This bug can lead to a buffer overflow when a consumed Zip iterator is used again.
(CVE-2021-28879)

- In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the element panics. (CVE-2021-31162)

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

https://errata.rockylinux.org/RLSA-2021:3063

https://bugzilla.redhat.com/show_bug.cgi?id=1949194

https://bugzilla.redhat.com/show_bug.cgi?id=1949198

https://bugzilla.redhat.com/show_bug.cgi?id=1949204

https://bugzilla.redhat.com/show_bug.cgi?id=1949207

https://bugzilla.redhat.com/show_bug.cgi?id=1949211

https://bugzilla.redhat.com/show_bug.cgi?id=1950396

https://bugzilla.redhat.com/show_bug.cgi?id=1950398

Plugin Details

Severity: Critical

ID: 157792

File Name: rocky_linux_RLSA-2021-3063.nasl

Version: 1.5

Type: local

Published: 2/9/2022

Updated: 11/9/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS Score Source: CVE-2021-31162

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:rocky:linux:cargo, p-cpe:/a:rocky:linux:cargo-debuginfo, p-cpe:/a:rocky:linux:cargo-doc, p-cpe:/a:rocky:linux:clippy, p-cpe:/a:rocky:linux:clippy-debuginfo, p-cpe:/a:rocky:linux:rls, p-cpe:/a:rocky:linux:rls-debuginfo, p-cpe:/a:rocky:linux:rust, p-cpe:/a:rocky:linux:rust-analysis, p-cpe:/a:rocky:linux:rust-debugger-common, p-cpe:/a:rocky:linux:rust-debuginfo, p-cpe:/a:rocky:linux:rust-debugsource, p-cpe:/a:rocky:linux:rust-doc, p-cpe:/a:rocky:linux:rust-gdb, p-cpe:/a:rocky:linux:rust-lldb, p-cpe:/a:rocky:linux:rust-src, p-cpe:/a:rocky:linux:rust-std-static, p-cpe:/a:rocky:linux:rust-toolset, p-cpe:/a:rocky:linux:rustfmt, p-cpe:/a:rocky:linux:rustfmt-debuginfo, cpe:/o:rocky:linux:8

Required KB Items: Host/local_checks_enabled, Host/cpu, Host/RockyLinux/release, Host/RockyLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/12/2021

Vulnerability Publication Date: 4/11/2021

Reference Information

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