CVE-2022-23639
Crossbeam Project Crossbeam vulnerability
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 products
Crossbeam. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Crossbeam Project Crossbeam runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/crossbeam-rs/crossbeam/pull/781 · Patch
- github.com/crossbeam-rs/crossbeam/releases/tag/crossbeam-utils-0.8.7 · Patch
- github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-qc84-gqf4-9926 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2022-23639
- rustsec.org/advisories/RUSTSEC-2022-0041.html
- github.com/advisories/GHSA-qc84-gqf4-9926
- nvd.nist.gov/vuln/detail/CVE-2022-23639
- cve.org/CVERecord?id=CVE-2022-23639
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.