CVE-2021-32810

Severity CVSS v4.0:
Pending analysis
Type:
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Publication date:
02/08/2021
Last modified:
07/11/2023

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:crossbeam_project:crossbeam:*:*:*:*:*:*:*:* 0.7.4 (excluding)
cpe:2.3:a:crossbeam_project:crossbeam:*:*:*:*:*:*:*:* 0.8.0 (including) 0.8.1 (excluding)
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*


References to Advisories, Solutions, and Tools