Lucene search

K
osvGoogleOSV:GHSA-2GRH-HM3W-W7HV
HistoryAug 25, 2021 - 8:55 p.m.

Race condition in tokio

2021-08-2520:55:51
Google
osv.dev
9
race condition
tokio
joinhandle
localset
rc
refcell
performance

EPSS

0.001

Percentile

45.7%

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.

EPSS

0.001

Percentile

45.7%