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
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | tokio | >= 1.8.0, < 1.8.1 | 1.8.1 |
Betroffene Produkte · Tokio
| Produkt | Betroffene 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
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tokio/RUSTSEC-2021-0072.md
- https://rustsec.org/advisories/RUSTSEC-2021-0072.html
- https://github.com/advisories/GHSA-2grh-hm3w-w7hv
- https://nvd.nist.gov/vuln/detail/CVE-2021-38191
- https://github.com/tokio-rs/tokio/issues/3929