tokio
Affected
- introduced
1.8.0, fixed1.8.1(semver)
Fixed versions
1.8.1
Fix
- Fixed version
1.8.1cargo update -p tokio --precise 1.8.1
Advisory
Also known as: CVE-2021-38191, RUSTSEC-2021-0072
Race condition in tokio
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.
Medium Basis: The source's own band: MODERATE
1.8.0, fixed 1.8.1 (semver)1.8.1
1.8.1cargo update -p tokio --precise 1.8.11.7.0, fixed 1.7.2 (semver)1.7.2
1.7.2cargo update -p tokio --precise 1.7.21.6.0, fixed 1.6.3 (semver)1.6.3
1.6.3cargo update -p tokio --precise 1.6.30.3.0, fixed 1.5.1 (semver)1.5.1
1.5.1cargo update -p tokio --precise 1.5.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0