RHEL 7 : rust-toolset-1.52 and rust-toolset-1.52-rust (RHSA-2021:3042)

critical Nessus Plugin ID 152446

Synopsis

The remote Red Hat host is missing one or more security updates for rust-toolset-1.52 / rust-toolset-1.52-rust.

Description

The remote Redhat Enterprise Linux 7 host has packages installed that are affected by multiple vulnerabilities as referenced in the RHSA-2021:3042 advisory.

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

The following packages have been upgraded to a later upstream version: rust-toolset-1.52-rust (1.52.1).
(BZ#1947197)

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.

Tenable has extracted the preceding description block directly from the Red Hat Enterprise Linux security advisory.

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

Solution

Update the RHEL rust-toolset-1.52 / rust-toolset-1.52-rust packages based on the guidance in RHSA-2021:3042.

See Also

http://www.nessus.org/u?be9a0cf8

http://www.nessus.org/u?fd5249a1

https://access.redhat.com/security/updates/classification/#moderate

https://access.redhat.com/errata/RHSA-2021:3042

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: 152446

File Name: redhat-RHSA-2021-3042.nasl

Version: 1.11

Type: local

Agent: unix

Published: 8/11/2021

Updated: 11/7/2024

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

Vendor

Vendor Severity: Moderate

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:redhat:enterprise_linux:rust-toolset-1.52-rust-src, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-rustfmt, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-cargo-doc, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-rust-gdb, cpe:/o:redhat:enterprise_linux:7, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-rust-analysis, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-rls, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-build, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-clippy, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-rust-debugger-common, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-cargo, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-rust-doc, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-rust, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-rust-lldb, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-rust-std-static, p-cpe:/a:redhat:enterprise_linux:rust-toolset-1.52-runtime

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/10/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

CWE: 119, 20, 416

RHSA: 2021:3042