CVE-2021-38191
Task dropped in wrong thread when aborting `LocalSet` task
5.9
MEDIUM
CVSS 3.1
EPSS 0.84%
描述
When aborting a task with `JoinHandle::abort`, the future is dropped in the thread calling abort if the task is not currently being executed. This is incorrect for tasks spawned on a `LocalSet`. This can easily result in race conditions as many projects use `Rc` or `RefCell` in their Tokio tasks for better performance. See [tokio#3929][issue] for more details. [issue]: https://github.com/tokio-rs/tokio/issues/3929
如何修補 CVE-2021-38191
要修補 CVE-2021-38191,請將受影響套件升級到下列已修補版本。
- —升級至 1.8.1 或更新版本
- —升級至 1.5.1 或更新版本
CVE-2021-38191 正在被利用嗎?
低 — EPSS 為 0.8%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- >= 1.8.0, < 1.8.1
- >= 0.3.0, < 1.5.1, >= 1.6.0, < 1.6.3, >= 1.7.0, < 1.7.2, >= 1.8.0, < 1.8.1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |