9.8critical
Data race in crossbeam-deque
- Severity
- 9.8critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.91% (higher than 80% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pqqp-xmhj-wgcwRUSTSEC-2021-0093
Description
crossbeam-deque is a package of work-stealing deques for building task schedulers when programming in Rust. In versions prior to 0.7.4 and 0.8.0, the result of the race condition is that one or more tasks in the worker queue can be popped twice instead of other tasks that are forgotten and never popped. If tasks are allocated on the heap, this can cause double free and a memory leak. If not, this still can cause a logical bug. Crates using `Stealer::steal`, `Stealer::steal_batch`, or `Stealer::steal_batch_and_pop` are affected by this issue. This has been fixed in crossbeam-deque 0.8.1 and 0.7.4.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| crossbeam-rs crossbeam | < 0.7.4, >= 0.8.0, < 0.8.1 | CVE List |
| crossbeam-deque (crates.io) | before 0.7.4, from 0.8.0 before 0.8.1, from 0.0.0-0 before 0.7.4 | GitHub Advisory Database, RustSec Advisory Database |
| crossbeam_project crossbeam | before 0.7.4, from 0.8.0 before 0.8.1 | NVD |
| fedoraproject fedora | 34 | NVD |
All scores
| GitHub_M | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| RustSec Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
crossbeam-deque is a package of work-stealing deques for building task schedulers when programming in Rust. In versions prior to 0.7.4 and 0.8.0, the result of the race condition is that one or more tasks in the worker queue can be popped twice instead of other tasks that are forgotten and never popped. If tasks are allocated on the heap, this can cause double free and a memory leak. If not, this still can cause a logical bug. Crates using `Stealer::steal`, `Stealer::steal_batch`, or `Stealer::steal_batch_and_pop` are affected by this issue. This has been fixed in crossbeam-deque 0.8.1 and 0.7.4.
GitHub Advisory Database
Impact
In the affected version of this crate, the result of the race condition is that one or more tasks in the worker queue can be popped twice instead of other tasks that are forgotten and never popped. If tasks are allocated on the heap, this can cause double free and a memory leak. If not, this still can cause a logical bug.
Crates using Stealer::steal, Stealer::steal_batch, or Stealer::steal_batch_and_pop are affected by this issue.
Patches
This has been fixed in crossbeam-deque 0.8.1 and 0.7.4.
Credits
This issue was reported and fixed by Maor Kleinberger.
License
This advisory is in the public domain.
RustSec Advisory Database
In the affected version of this crate, the result of the race condition is that one or more tasks in the worker queue can be popped twice instead of other tasks that are forgotten and never popped. If tasks are allocated on the heap, this can cause double free and a memory leak. If not, this still can cause a logical bug.
Crates using Stealer::steal, Stealer::steal_batch, or Stealer::steal_batch_and_pop are affected by this issue.
Credits to @kmaork for discovering, reporting and fixing the bug.
NVD (es)
crossbeam-deque es un paquete de deques work-stealing para construir programadores de tareas cuando se programa en Rust. En versiones anteriores a 0.7.4 y 0.8.0, el resultado de la condición de carrera es que una o más tareas en la cola de trabajadores pueden ser saltadas dos veces en lugar de otras tareas que son olvidadas y nunca saltadas. Si las tareas están asignadas en la pila, esto puede causar una doble liberación y una pérdida de memoria. Si no es así, esto todavía puede causar un error lógico. Las cajas que usan "Stealer::steal", "Stealer::steal_batch", o "Stealer::steal_batch_and_pop" están afectadas por este problema. Esto ha sido corregido en crossbeam-deque versiones 0.8.1 y 0.7.4
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32810 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pqqp-xmhj-wgcw changed 2026-07-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0093 changed 2026-10-12 | CC0-1.0 |
| NVD | CVE-2021-32810 changed 2026-06-17 | Public domain |