GHSA-2grh-hm3w-w7hv
Dashboard / Vulnerabilities / GHSA-2grh-hm3w-w7hv
GHSA-2grh-hm3w-w7hv
Published: 25 Aug 2021Last Modified: 8 Nov 2023
Aliases:
Summary: Race condition in tokio
Details: When aborting a task with JoinHandle::abort, the future is dropped in the thread calling abort if the task is not currently being executed. This is incorrect for tasks spawned on a LocalSet. This can easily result in race conditions as many projects use Rc or RefCell in their Tokio tasks for better performance.
References: https://nvd.nist.gov/vuln/detail/CVE-2021-38191, https://github.com/tokio-rs/tokio/issues/3929, https://github.com/tokio-rs/tokio, https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tokio/RUSTSEC-2021-0072.md, https://rustsec.org/advisories/RUSTSEC-2021-0072.html
Affected packages
Package
Name: tokio
Purl: pkg:cargo/tokio
Affected ranges
Type: SEMVER
Events:
Introduced- 1.8.0
Fixed -1.8.1
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
