RUSTSEC-2021-0072
Dashboard / Vulnerabilities / RUSTSEC-2021-0072
RUSTSEC-2021-0072
Published: 7 Jul 2021Last Modified: 8 Nov 2023
Aliases:
Summary: Task dropped in wrong thread when aborting `LocalSet` task
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. See [tokio#3929][issue] for more details. [issue]: https://github.com/tokio-rs/tokio/issues/3929
References: https://crates.io/crates/tokio, https://rustsec.org/advisories/RUSTSEC-2021-0072.html, https://github.com/tokio-rs/tokio/issues/3929
Affected packages
Package
Name: tokio
Purl: pkg:cargo/tokio
Affected ranges
Type: SEMVER
Events:
Introduced- 0.3.0
Fixed -1.5.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
