CVE-2026-115567: Tokio: Race condition in `tokio::time::Interval`
Tokio 1.54.0 has a race in tokio::time::Interval on the multi-threaded runtime. It can cause a data race and use-after-free in safe Rust, which leads to panics, task reference-count corruption or heap corruption. Only 1.54.0 is affected, and it has been yanked. Upgrade to tokio 1.54.1.
Published Oct 23, 2026 · Analysis Nov 2, 2026
What an attacker can do
In 1.54.0, Interval::poll_tick (and so .tick().await) can drop an internal timer entry without synchronizing with the runtime's time driver thread that is firing it. The driver then touches the freed waker and task state. This is a use-after-free in safe Rust code, with no unsafe in the application.
The bug came in with PR 8458 and was fixed by PR 8692. Sleep and Timeout are not affected. Only code that uses Interval on the multi-threaded runtime is.
The observed effects are assertion panics, corrupted task reference counts and heap memory corruption. The advisory says it is known to cause crashes in production systems. That is why the release was yanked. It does not describe a way for a remote attacker to trigger the race on purpose, and it gives no exploit. The CVSS 4.0 vector is local, high complexity, with high availability impact, so the main practical risk is service crashes. Heap corruption could in theory have worse effects, but no source claims code execution. Any service with periodic tasks (heartbeats, polling, metrics flush) built on tokio::time::interval is a candidate.
Who is affected
Only tokio = 1.54.0. Versions below 1.54.0 are unaffected, and 1.54.1 and later are patched. Exposure needs the multi-threaded runtime and use of tokio::time::Interval, directly or through a dependency. Check which version your lockfile resolves:
cargo tree -i tokioor:
grep -A1 'name = "tokio"' Cargo.lockBecause 1.54.0 is yanked, new resolutions skip it, but an existing Cargo.lock can still pin it.
tokio
- Ecosystem
- Rust (crates.io)
- Affected
- = 1.54.0
- Fixed in
- 1.54.1
- Check
cargo tree -i tokio
How to fix it
Upgrade to tokio 1.54.1:
cargo update -p tokio --precise 1.54.1or run cargo update -p tokio to move to the newest compatible release. Rebuild and redeploy. The advisory lists no workarounds. Its only remedy is to upgrade to 1.54.1 or later. Rolling back to a version below 1.54.0 also avoids the bug, since those are unaffected.
How to tell if you were hit
Search Cargo.lock in every repository and container image for tokio 1.54.0. Tools that read RustSec data, such as cargo audit (advisory RUSTSEC-2026-0384), flag it. At runtime, look for unexplained panics with assertion failures from tokio's time or task code, aborts with heap corruption messages such as glibc free(): invalid pointer, and crash loops in services that run periodic timers on a multi-threaded runtime. The crashes are timing dependent, so they may be rare and hard to reproduce.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to ByteZ1337, carabistouflette.
Questions
- Are Sleep and Timeout in Tokio 1.54.0 affected?
No. The advisory says the race affects
Intervalonly, on the multi-threaded runtime. Sleep and Timeout are not affected.- Is Tokio 1.53 or earlier affected?
No. Only v1.54.0 is affected. The bug was introduced by PR 8458, which landed in that release.
- Is CVE-2026-115567 exploited in the wild?
No source reports exploitation, and it is not in CISA's KEV catalog. The advisory says it is known to cause crashes in production systems.
References
Read for this analysis:
- https://github.com/tokio-rs/tokio/security/advisories/GHSA-5wjr-9356-4wc8
- https://rustsec.org/advisories/RUSTSEC-2026-0384.html
- https://nvd.nist.gov/vuln/detail/CVE-2026-115567
- https://github.com/tokio-rs/tokio/pull/8458
- https://github.com/tokio-rs/tokio/pull/8692
- https://github.com/tokio-rs/tokio/commit/2b4eba7833864c04ecd2f3e5f4a97ff4f6fa28d0
- https://github.com/tokio-rs/tokio/commit/5ed619bbaba87357ee5103d71b75e7c84cad99c9
- https://github.com/tokio-rs/tokio/releases/tag/tokio-1.54.1
- https://github.com/advisories/GHSA-5wjr-9356-4wc8
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
