RUSTSEC-2026-0384: Race condition in `tokio::time::Interval` on Tokio v1.54.0
Maintainer thường phản hồi trong vòng 1 ngày
Một pull request liên quan đã được merge.
- #1370 của @szokeasaurusrex — đã merge
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 755
- Fork
- 192
- Merge trung bình
- 3 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-rust
-
breaking change
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-rust#1387 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
breaking change Rust
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-rust#1386 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`Transport::flush` on an `Arc<T>` transport returns `true` without flushing `T`Có thể đã có người làm @sentry-junior đã nhận 1 ngày trước. Đang mởBug Rust
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
getsentry/sentry-rust#1374 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
breaking change Rust Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-rust#1345 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Pin Rust toolchainĐang mởRust Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
getsentry/sentry-rust#933 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-rust
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
priority middle
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
KATO-Hiro/AtCoderClans#12940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
o8 next debug build aborts on Glass to Dark appearance switch (nil identifier messaged before check)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hurttlocker/o8#5112 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày