RUSTSEC-2026-0384: Race condition in `tokio::time::Interval` on Tokio v1.54.0
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
The issue identifies a Tokio v1.54.0 race in Interval::poll_tick on the multi-threaded runtime and links the fix in Tokio PR #8692. Read that pull request and check whether sentry-rust uses the affected Tokio version; done means the project is not exposed to the vulnerable version. If a dependency change is needed, inspect the relevant dependency declaration and verify the resolved version.
索引モデルが issue の本文から書いたものです。
説明
Race condition in
tokio::time::Intervalon Tokio v1.54.0
| Details | |
|---|---|
| Package | tokio |
| Version | 1.54.0 |
| URL | https://github.com/tokio-rs/tokio/pull/8692 |
| Date | 2026-10-21 |
| Patched versions | >=1.54.1 |
| Unaffected versions | <1.54.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.
See advisory page for additional details.
- 主要言語
- Rust
- スター
- 753
- フォーク
- 193
- 平均マージ
- 10時間 10分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-rust のほかの issue
-
breaking change Rust Task
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
getsentry/sentry-rust#1345 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Pin Rust toolchainオープンRust Task
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
getsentry/sentry-rust#933 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug Rust
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
getsentry/sentry-rust#1354 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Rust Tracking Issue
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
getsentry/sentry-rust#1344 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Rust Tracking Issue
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
getsentry/sentry-rust#1343 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/sentry-rust の issue をすべて見る
似ている issue
-
component:benchmark
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
agentic-os-org/ANOLISA#9177 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
oracle/rust-oracledb#61 ·
-
bug priority-medium to-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
Databricks tool-only response crashes in resolve_reasoning_and_content with KeyError: content対応中かも @1divyanshdev が今日担当しました。 オープンllm translation
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
BerriAI/litellm#48637 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信