GHSA-2grh-hm3w-w7hv

ghsaUSosv

Race condition in tokio

view advisory published 2021-08-25Licence: CC-BY-4.0

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.

01

describes (1)

Related CVEs.

IDseverity exploitable
CVE-2021-38191USmedium5.9—
An issue was discovered in the tokio crate before 1.8.1 for Rust. Upon a JoinHandle::abort, a Task may be dropped in the wrong thread.
02

references

External citations — patches, advisories, analysis.

scry

Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.

Free scan