NetSight
mittel5.9

CVE-2021-38191

Race condition in tokio

Auswirkung

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.

Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: hohes Risiko für Ausfälle.

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
rusttokio>= 1.8.0, < 1.8.11.8.1

Betroffene Produkte · Tokio

ProduktBetroffene Versionen
Tokio
ab 0.3.0 vor 1.5.1
ab 1.6.0 vor 1.6.3
ab 1.7.0 vor 1.7.2
Version 1.8.0

Schwachstellenklasse

Referenzen