GitHub Advisoryadvisory · crates.io
GHSA-5wjr-9356-4wc8 Tokio: Race condition in `tokio::time::Interval`
MEDIUM
Official page ↗
- Aliases
- CVE-2026-115567
- Ecosystem
- crates.io
- Packages
- tokio
- Severity
- Moderate
- CVSS vector
- CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
- Weaknesses
- CWE-362
- Reviewed
- 2026-10-23
Affected packages
• crates.io tokio: >= 1.54.0, < 1.54.1 → fixed in 1.54.1
Description
Summary
On the multi-threaded runtime, there is a race condition between `Interval::poll_tick` and the runtime's time driver.
This affects `Interval` only. `Sleep` and `Timeout` are not affected.
Details
In Tokio v1.54.0, a race condition between `tokio::time::Interval::poll_tick` (including `.tick().await`) and the runtime time driver can drop an internal timer entry without synchronizing with the driver thread that is firing it. This causes a data race and use-after-free on the timer's waker and task state in safe Rust, leading to assertion panics, task reference-count corruption, or heap memory corruption.
This bug was introduced by https://github.com/tokio-rs/tokio/pull/8458, and it was fixed by https://github.com/tokio-rs/tokio/pull/8692.
Impact
This may lead to crashes and use-after-frees in applications using `Interval` on a multi-threaded runtime.
Since this issue is known to lead to crashes in production systems, the v1.54.0 release of Tokio has been yanked.
Credits
Thank you to creepycode and carabistouille for reporting this privately using the procedure outlined in our security policy. They both reported the issue independently of each other.
Related
Alias · CVE (1)
- CVE-2026-115567 Tokio is a runtime for writing applications with Rust. vulnerability
Weakness · CWE (1)
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness
References
- https://github.com/tokio-rs/tokio/security/advisories/GHSA-5wjr-9356-4wc8 web
- https://nvd.nist.gov/vuln/detail/CVE-2026-115567 advisory
- https://github.com/tokio-rs/tokio/pull/8458 web
- https://github.com/tokio-rs/tokio/pull/8692 web
- https://github.com/tokio-rs/tokio/commit/2b4eba7833864c04ecd2f3e5f4a97ff4f6fa28d0 web
- https://github.com/tokio-rs/tokio/commit/5ed619bbaba87357ee5103d71b75e7c84cad99c9 web
- https://github.com/tokio-rs/tokio package
- https://github.com/tokio-rs/tokio/releases/tag/tokio-1.54.1 web
- https://rustsec.org/advisories/RUSTSEC-2026-0384.html web