cve.bz

CVE-2021-45710 tokio tokio: Race Condition

8.1 highEPSS 1.2%Fix available

High (8.1) in tokio tokio. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in tokio 1.13.1, 1.8.4.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-45710 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-45710?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-45710?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-45710 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
tokio:tokiofrom 0.1.14 before 1.8.4
tokio:tokiofrom 1.9.0 before 1.13.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fg7r-2g4j-5cgrcrates.iotokio>=0.1.14 <1.8.41.8.4
GHSA-fg7r-2g4j-5cgrcrates.iotokio>=1.9.0 <1.13.11.13.1
RUSTSEC-2021-0124crates.iotokio>=0.1.14 <1.8.4
>=1.9.0 <1.13.1
1.8.4, 1.13.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rust-tokio1.15.0-1DEBIAN-CVE-2021-45710
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morerust-tokiono fix listedUBUNTU-CVE-2021-45710
SUSELinux Enterprise Module for Development Tools 15 SP3rustup1.25.1~0-150300.7.13.2SUSE-SU-2022:3949-1
SUSELinux Enterprise Module for Development Tools 15 SP3sccache0.3.0~git5.14a4b8b-150300.7.9.1SUSE-SU-2022:4073-1
SUSELinux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Module for Development Tools 15 SP5sccache0.4.2~3-150400.3.3.1SUSE-SU-2023:3526-1
SUSELinux Enterprise Module for Server Applications 15 SP3389-ds1.4.4.19~git59.136fc84-150300.3.27.1SUSE-SU-2022:4124-1
SUSELinux Enterprise Module for Server Applications 15 SP4389-ds2.0.16~git56.d15a0a7-150400.3.15.1SUSE-SU-2022:3996-1
SUSEPackage Hub 15 SP6kanidm1.3.3~git0.f075d13-bp156.4.1openSUSE-SU-2024:0294-1
openSUSELeap 15.3389-ds1.4.4.19~git59.136fc84-150300.3.27.1SUSE-SU-2022:4124-1
openSUSELeap 15.3rustup1.25.1~0-150300.7.13.2SUSE-SU-2022:3949-1
openSUSELeap 15.3sccache0.3.0~git5.14a4b8b-150300.7.9.1SUSE-SU-2022:4073-1
openSUSELeap 15.4389-ds2.0.16~git56.d15a0a7-150400.3.15.1SUSE-SU-2022:3996-1
openSUSELeap 15.4, Leap 15.5sccache0.4.2~3-150400.3.3.1SUSE-SU-2023:3526-1
openSUSELeap 15.6kanidm1.3.3~git0.f075d13-bp156.4.1openSUSE-SU-2024:0294-1
openSUSETumbleweedcargo-c0.8.1~git0.cce1b08-2.1openSUSE-SU-2024:11720-1
openSUSETumbleweedgreetd0.8.0-2.1openSUSE-SU-2024:11710-1
openSUSETumbleweedrustscan2.0.1+0-1.1openSUSE-SU-2024:11714-1
openSUSETumbleweedrustup1.24.3~git1.0a74fef5-2.1openSUSE-SU-2024:11715-1
openSUSETumbleweedsccache0.2.15~git0.6b6d2f7-8.1openSUSE-SU-2024:11716-1
openSUSETumbleweedspotifyd0.3.3-2.1openSUSE-SU-2024:11722-1
3 more for openSUSE in the JSON and on openSUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8389-ds-baseNot affected
Red Hat Enterprise Linux 8nisporNot affected
Red Hat Enterprise Linux 9389-ds-baseNot affected
Red Hat Enterprise Linux 9keylime-agent-rustNot affected
Red Hat Enterprise Linux 9nisporNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-45710.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON