Vulnerability · Published Aug 2, 2021 · Assigned by GitHub_M

CVE-2021-32810Data race in crossbeam-deque

Critical 9.8

In plain English

A critical-severity race condition in crossbeam from crossbeam-rs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.9%top 20.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20firefox93.0-r0ALPINE-CVE-2021-32810
Alpine:v3.21firefox93.0-r0ALPINE-CVE-2021-32810
Alpine:v3.22firefox93.0-r0ALPINE-CVE-2021-32810
Alpine:v3.23firefox93.0-r0ALPINE-CVE-2021-32810
Alpine:v3.20firefox-esr91.2.0-r0ALPINE-CVE-2021-32810
Alpine:v3.21firefox-esr91.2.0-r0ALPINE-CVE-2021-32810
Alpine:v3.22firefox-esr91.2.0-r0ALPINE-CVE-2021-32810
Alpine:v3.23firefox-esr91.2.0-r0ALPINE-CVE-2021-32810
Alpine:v3.21librewolf93.0-r0ALPINE-CVE-2021-32810
Alpine:v3.22librewolf93.0-r0ALPINE-CVE-2021-32810
Alpine:v3.23librewolf93.0-r0ALPINE-CVE-2021-32810
Alpine:v3.24librewolf93.0-r0ALPINE-CVE-2021-32810
Alpine:v3.20thunderbird91.3.2-r0ALPINE-CVE-2021-32810
Alpine:v3.21thunderbird91.3.2-r0ALPINE-CVE-2021-32810
Alpine:v3.22thunderbird91.3.2-r0ALPINE-CVE-2021-32810
Alpine:v3.23thunderbird91.3.2-r0ALPINE-CVE-2021-32810
Debian:12rust-crossbeam-deque0.7.4-1DEBIAN-CVE-2021-32810
Debian:13rust-crossbeam-deque0.7.4-1DEBIAN-CVE-2021-32810
Debian:14rust-crossbeam-deque0.7.4-1DEBIAN-CVE-2021-32810
Rocky Linux:8firefox0:91.2.0-4.el8_4RLSA-2021:3755
Rocky Linux:8thunderbird0:91.2.0-1.el8_4RLSA-2021:3838
Ubuntu:22.04:LTSrust-crossbeam-dequeno fix listedUBUNTU-CVE-2021-32810

Affected products (as reported)

VendorProductVersions
crossbeam-rs crossbeam < 0.7.4>= 0.8.0, < 0.8.1

Weakness: CWE-362 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References