Tokio memory corruption in interval timer race
tokio-rs tokio
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| tokio crates.io |
|
|
Original description
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.
From the CVE record · GitHub_M