Skip to content
OpenAdvisories
High · 8.1 CVE-2021-45710 EUVD-2022-0582GHSA-fg7r-2g4j-5cgrRUSTSEC-2021-0124

Race Condition in tokio

Published Dec 26, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Description

An issue was discovered in the tokio crate before 1.8.4, and 1.9.x through 1.13.x before 1.13.1, for Rust. In certain circumstances involving a closed oneshot channel, there is a data race and memory corruption.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-tokio 1.15.0-1 —
Debian 13 rust-tokio 1.15.0-1 —
Debian 12 rust-tokio 1.15.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-tokio No fix yet —
Ubuntu 26.04 LTS rust-tokio No fix yet —
Ubuntu 25.10 rust-tokio No fix yet —
Ubuntu 24.04 LTS rust-tokio No fix yet —
Ubuntu 22.04 LTS rust-tokio No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS rust-tokio No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP5 sccache 0.4.2~3-150400.3.3.1 SUSE-SU-2023:3526-1
SLES 15 SP4 389-ds 2.0.16~git56.d15a0a7-150400.3.15.1 SUSE-SU-2022:3996-1
SLES 15 SP4 sccache 0.4.2~3-150400.3.3.1 SUSE-SU-2023:3526-1
SLES 15 SP3 389-ds 1.4.4.19~git59.136fc84-150300.3.27.1 SUSE-SU-2022:4124-1
SLES 15 SP3 rustup 1.25.1~0-150300.7.13.2 SUSE-SU-2022:3949-1
SLES 15 SP3 sccache 0.3.0~git5.14a4b8b-150300.7.9.1 SUSE-SU-2022:4073-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP6 kanidm 1.3.3~git0.f075d13-bp156.4.1 openSUSE-SU-2024:0294-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cargo-c 0.8.1~git0.cce1b08-2.1 openSUSE-SU-2024:11720-1
openSUSE Tumbleweed greetd 0.8.0-2.1 openSUSE-SU-2024:11710-1
openSUSE Tumbleweed rustscan 2.0.1+0-1.1 openSUSE-SU-2024:11714-1
openSUSE Tumbleweed rustup 1.24.3~git1.0a74fef5-2.1 openSUSE-SU-2024:11715-1
openSUSE Tumbleweed sccache 0.2.15~git0.6b6d2f7-8.1 openSUSE-SU-2024:11716-1
openSUSE Tumbleweed spotifyd 0.3.3-2.1 openSUSE-SU-2024:11722-1
openSUSE Tumbleweed tealdeer 1.5.0+0-1.1 openSUSE-SU-2024:11916-1
openSUSE Tumbleweed tuigreet 0.7.1-3.1 openSUSE-SU-2024:11717-1
openSUSE Tumbleweed zram-generator 1.1.1~git5.8612dbb-1.1 openSUSE-SU-2024:11729-1
openSUSE Leap 15.6 kanidm 1.3.3~git0.f075d13-bp156.4.1 openSUSE-SU-2024:0294-1
openSUSE Leap 15.5 sccache 0.4.2~3-150400.3.3.1 SUSE-SU-2023:3526-1
openSUSE Leap 15.4 389-ds 2.0.16~git56.d15a0a7-150400.3.15.1 SUSE-SU-2022:3996-1
openSUSE Leap 15.4 sccache 0.4.2~3-150400.3.3.1 SUSE-SU-2023:3526-1
openSUSE Leap 15.3 389-ds 1.4.4.19~git59.136fc84-150300.3.27.1 SUSE-SU-2022:4124-1
openSUSE Leap 15.3 rustup 1.25.1~0-150300.7.13.2 SUSE-SU-2022:3949-1
openSUSE Leap 15.3 sccache 0.3.0~git5.14a4b8b-150300.7.9.1 SUSE-SU-2022:4073-1

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io tokio >= 0.1.14, < 1.8.4 1.8.4 GHSA-fg7r-2g4j-5cgr
crates.io tokio >= 1.9.0, < 1.13.1 1.13.1 GHSA-fg7r-2g4j-5cgr
crates.io tokio >= 0.1.14, < 1.8.4 · >= 1.9.0, < 1.13.1 1.8.4, 1.13.1 RUSTSEC-2021-0124

Advisories 15

References