CVE-2021-32810 — crossbeam-deque
CRITICALCVE-2021-32810 is a critical-severity (CVSS 9.8) CWE-362 vulnerability in crossbeam-deque. A fix is available for crossbeam-deque — see the affected versions and patch details below.
crossbeam-deque Data Race before v0.7.4 and v0.8.1
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-32810 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,386 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
crossbeam-deque🦀crossbeam-dequeReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
Description
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | crossbeam-deque | all versions | 0.7.4cargo update -p crossbeam-deque --precise 0.7.4 |
| 🦀crates.io | crossbeam-deque | ≥ 0.8.0&&< 0.8.1 | 0.8.1cargo update -p crossbeam-deque --precise 0.8.1 |
Affected Products
crossbeamcrossbeam_projectfedorafedoraprojectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for crossbeam-deque, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update crossbeam-deque to 0.7.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-32810 is resolved across your whole dependency graph.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Enterprise Linux 7 | firefox-0:91.2.0-4.el7_9 | RHSA-2021:3791 |
| Red Hat Enterprise Linux 7 | thunderbird-0:91.2.0-1.el7_9 | RHSA-2021:3841 |
| Red Hat Enterprise Linux 8 | firefox-0:91.2.0-4.el8_4 | RHSA-2021:3755 |
| Red Hat Enterprise Linux 8 | thunderbird-0:91.2.0-1.el8_4 | RHSA-2021:3838 |
| Red Hat Enterprise Linux 8.1 Extended Update Support | firefox-0:91.2.0-4.el8_1 | RHSA-2021:3757 |
| Red Hat Enterprise Linux 8.1 Extended Update Support | thunderbird-0:91.2.0-1.el8_1 | RHSA-2021:3840 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | firefox-0:91.2.0-4.el8_2 | RHSA-2021:3756 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | thunderbird-0:91.2.0-1.el8_2 | RHSA-2021:3839 |
Frequently Asked Questions
Is CVE-2021-32810 in your dependencies?
Find it across crates.io, including transitive dependencies.