PT-2021-24284 · Tokio+2 · Tokio+2

Published

2021-11-16

·

Updated

2024-09-09

·

CVE-2021-45710

CVSS v3.1

8.1

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: tokio crate versions 1.8.4 and earlier tokio crate versions 1.9.x through 1.13.x before 1.13.1
Description: An issue in the tokio crate for Rust can cause a data race and memory corruption in certain circumstances involving a closed oneshot channel. If a tokio::sync::oneshot channel is closed via the oneshot::Receiver::close method, a data race may occur if the oneshot::Sender::send method is called while the corresponding oneshot::Receiver is awaited or calling try recv. This can result in memory corruption when both halves of the channel are used after the Receiver half has called close.
Recommendations: For tokio crate versions 1.8.4 and earlier, update to version 1.8.4 or later. For tokio crate versions 1.9.x through 1.13.x before 1.13.1, update to version 1.13.1 or later. As a temporary workaround, consider avoiding the use of the close method on the oneshot::Receiver half of the channel, or ensure that the oneshot::Sender::send method is not called while the corresponding oneshot::Receiver is awaited or calling try recv.

Fix

Race Condition

Weakness Enumeration

Related Identifiers

CVE-2021-45710
GHSA-FG7R-2G4J-5CGR
OPENSUSE-SU-2022_3949-1
OPENSUSE-SU-2022_3996-1
OPENSUSE-SU-2022_4073-1
OPENSUSE-SU-2022_4124-1
OPENSUSE-SU-2023_3526-1
OPENSUSE-SU-2024:0294-1
OPENSUSE-SU-2024:11710-1
OPENSUSE-SU-2024:11711-1
OPENSUSE-SU-2024:11714-1
OPENSUSE-SU-2024:11715-1
OPENSUSE-SU-2024:11716-1
OPENSUSE-SU-2024:11717-1
OPENSUSE-SU-2024:11720-1
OPENSUSE-SU-2024:11721-1
OPENSUSE-SU-2024:11722-1
OPENSUSE-SU-2024:11729-1
OPENSUSE-SU-2024:11751-1
OPENSUSE-SU-2024:11916-1
RUSTSEC-2021-0124
SUSE-SU-2022:3949-1
SUSE-SU-2022:3996-1
SUSE-SU-2022:4073-1
SUSE-SU-2022:4124-1
SUSE-SU-2022_3949-1
SUSE-SU-2022_3996-1
SUSE-SU-2022_4073-1
SUSE-SU-2022_4124-1
SUSE-SU-2023:3526-1
SUSE-SU-2023_3526-1

Affected Products

Debian
Suse
Tokio