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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | firefox | 93.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.21 | firefox | 93.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.22 | firefox | 93.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.23 | firefox | 93.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.20 | firefox-esr | 91.2.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.21 | firefox-esr | 91.2.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.22 | firefox-esr | 91.2.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.23 | firefox-esr | 91.2.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.21 | librewolf | 93.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.22 | librewolf | 93.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.23 | librewolf | 93.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.24 | librewolf | 93.0-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.20 | thunderbird | 91.3.2-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.21 | thunderbird | 91.3.2-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.22 | thunderbird | 91.3.2-r0 | ALPINE-CVE-2021-32810 |
| Alpine:v3.23 | thunderbird | 91.3.2-r0 | ALPINE-CVE-2021-32810 |
| Debian:12 | rust-crossbeam-deque | 0.7.4-1 | DEBIAN-CVE-2021-32810 |
| Debian:13 | rust-crossbeam-deque | 0.7.4-1 | DEBIAN-CVE-2021-32810 |
| Debian:14 | rust-crossbeam-deque | 0.7.4-1 | DEBIAN-CVE-2021-32810 |
| Rocky Linux:8 | firefox | 0:91.2.0-4.el8_4 | RLSA-2021:3755 |
| Rocky Linux:8 | thunderbird | 0:91.2.0-1.el8_4 | RLSA-2021:3838 |
| Ubuntu:22.04:LTS | rust-crossbeam-deque | no fix listed | UBUNTU-CVE-2021-32810 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-pqqp-xmhj-wgcw x_refsource_CONFIRM
- FEDORA-2021-a5161737c3 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-537541ceae vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-5e99655cca vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-2db6c84087 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-60f0e1bb35 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-3cf88e44b4 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-67d6c34e5b vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-32c9adf002 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-e37a366b00 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-af2eb94426 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-9dc0bd0072 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-0f82e9d6d5 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-e5ec6d55bf vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-79ce3cb64a vendor-advisory, x_refsource_FEDORA