All reports
Medium

Race condition in tokio

Affected versions

Version ranges need review.

Rust / Cargotokio
Affected versions
>= 1.8.0, < 1.8.1
Fixed version
1.8.1
Rust / Cargotokio
Affected versions
>= 1.7.0, < 1.7.2
Fixed version
1.7.2
Rust / Cargotokio
Affected versions
>=0.3.0 <1.5.1 || >=1.6.0 <1.6.3 || >=1.7.0 <1.7.2 || >=1.8.0 <1.8.1
Fixed version
1.5.1 · 1.6.3 · 1.7.2 · 1.8.1
Rust / Cargotokio
Affected versions
>= 1.6.0, < 1.6.3
Fixed version
1.6.3
Rust / Cargotokio
Affected versions
>= 0.3.0, < 1.5.1
Fixed version
1.5.1

Exploitation

CVE-2021-38191

Probability of exploitation in the next 30 days: 0.83%

FIRST EPSS · 2026-11-22

Description

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.

Links