Vulnerability · Published Feb 15, 2022 · Assigned by GitHub_M
CVE-2022-23639Improper Restriction of Operations within the Bounds of a Memory Buffer and Race Condition in crossbeam-utils
High 8.1
In plain English
A high-severity race condition in crossbeam from crossbeam-rs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
crossbeam-utils provides atomics, synchronization primitives, scoped threads, and other utilities for concurrent programming in Rust. crossbeam-utils prior to version 0.8.7 incorrectly assumed that the alignment of `{i,u}64` was always the same as `Atomic{I,U}64`. However, the alignment of `{i,u}64` on a 32-bit target can be smaller than `Atomic{I,U}64`. This can cause unaligned memory accesses and data race. Crates using `fetch_*` methods with `AtomicCell<{i,u}64>` are affected by this issue. 32-bit targets without `Atomic{I,U}64` and 64-bit targets are not affected by this issue. This has been fixed in crossbeam-utils 0.8.7. There are currently no known workarounds.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rust-crossbeam-utils | 0.8.8-1 | DEBIAN-CVE-2022-23639 |
| Debian:13 | rust-crossbeam-utils | 0.8.8-1 | DEBIAN-CVE-2022-23639 |
| Debian:14 | rust-crossbeam-utils | 0.8.8-1 | DEBIAN-CVE-2022-23639 |
| Ubuntu:22.04:LTS | firefox | 1:1snap1-0ubuntu1 | UBUNTU-CVE-2022-23639 |
| Ubuntu:22.04:LTS | mozjs78 | no fix listed | UBUNTU-CVE-2022-23639 |
| Ubuntu:22.04:LTS | rust-crossbeam-utils | no fix listed | UBUNTU-CVE-2022-23639 |
| Ubuntu:22.04:LTS | rust-crossbeam-utils-0.7 | no fix listed | UBUNTU-CVE-2022-23639 |
| Ubuntu:22.04:LTS | rustc | 1.58.1+dfsg1~ubuntu1-0ubuntu1 | UBUNTU-CVE-2022-23639 |
| Ubuntu:22.04:LTS | thunderbird | no fix listed | UBUNTU-CVE-2022-23639 |
| Ubuntu:24.04:LTS | thunderbird | no fix listed | UBUNTU-CVE-2022-23639 |
| Ubuntu:25.10 | thunderbird | no fix listed | UBUNTU-CVE-2022-23639 |
| Ubuntu:26.04:LTS | thunderbird | no fix listed | UBUNTU-CVE-2022-23639 |
| Ubuntu:26.10 | thunderbird | no fix listed | UBUNTU-CVE-2022-23639 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| crossbeam-rs | crossbeam | < 0.8.7 |
Weakness: CWE-362 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-qc84-gqf4-9926 x_refsource_CONFIRM
- https://github.com/crossbeam-rs/crossbeam/pull/781 x_refsource_MISC
- https://github.com/crossbeam-rs/crossbeam/releases/tag/crossbeam-utils-0.8.7 x_refsource_MISC