Lucene search

K
osvGoogleOSV:RUSTSEC-2021-0072
HistoryJul 07, 2021 - 12:00 p.m.

Task dropped in wrong thread when aborting `LocalSet` task

2021-07-0712:00:00
Google
osv.dev
13

0.001 Low

EPSS

Percentile

45.8%

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 for more details.

0.001 Low

EPSS

Percentile

45.8%