Tokio: Race condition in `tokio::time::Interval`
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| tokio-rstokio | — | Not listed |
| rusttokio |
< 1.54.1→ 1.54.1 |
1.54.1 |
| crates.iotokio |
≥ 1.54.0, < 1.54.1→ 1.54.1 |
1.54.1 |
Original description The description as published by the source.
Tokio is a runtime for writing applications with Rust. In 1.54.0, a race condition between tokio::time::Interval::poll_tick (including .tick().await) and the multi-threaded runtime's time driver could drop an internal timer entry without synchronizing with the driver thread that was firing it. The race caused a use-after-free on the timer's waker and task state in safe Rust, which could produce assertion panics, task reference-count corruption, or heap memory corruption. This issue is fixed in 1.54.1.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory rustsec.org
- advisory github.com
- package github.com
- package crates.io
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com
- web github.com