Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1xYzg0LWdxZjQtOTkyNs0sbw
crossbeam-utils Race Condition vulnerability
Impact
The affected version of this crate 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 the following problems:
- Unaligned memory accesses
- 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.
32-bit targets with Atomic{I,U}64
and {i,u}64
have the same alignment are also not affected by this issue.
The following is a complete list of the builtin targets that may be affected. (last update: nightly-2022-02-11)
- armv7-apple-ios (tier 3)
- armv7s-apple-ios (tier 3)
- i386-apple-ios (tier 3)
- i586-unknown-linux-gnu
- i586-unknown-linux-musl
- i686-apple-darwin (tier 3)
- i686-linux-android
- i686-unknown-freebsd
- i686-unknown-haiku (tier 3)
- i686-unknown-linux-gnu
- i686-unknown-linux-musl
- i686-unknown-netbsd (tier 3)
- i686-unknown-openbsd (tier 3)
- i686-wrs-vxworks (tier 3)
Patches
This has been fixed in crossbeam-utils 0.8.7.
Affected 0.8.x releases have been yanked.
References
https://github.com/crossbeam-rs/crossbeam/pull/781
License
This advisory is in the public domain.
Permalink: https://github.com/advisories/GHSA-qc84-gqf4-9926JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1xYzg0LWdxZjQtOTkyNs0sbw
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: almost 3 years ago
Updated: almost 2 years ago
CVSS Score: 8.1
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-qc84-gqf4-9926, CVE-2022-23639
References:
- https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-qc84-gqf4-9926
- https://nvd.nist.gov/vuln/detail/CVE-2022-23639
- https://github.com/crossbeam-rs/crossbeam/pull/781
- https://github.com/crossbeam-rs/crossbeam/releases/tag/crossbeam-utils-0.8.7
- https://rustsec.org/advisories/RUSTSEC-2022-0041.html
- https://github.com/advisories/GHSA-qc84-gqf4-9926
Blast Radius: 38.1
Affected Packages
cargo:crossbeam-utils
Dependent packages: 414Dependent repositories: 51,154
Downloads: 263,930,362 total
Affected Version Ranges: < 0.8.7
Fixed in: 0.8.7
All affected versions: 0.1.0, 0.2.0, 0.2.1, 0.2.2, 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6
All unaffected versions: 0.8.7, 0.8.8, 0.8.9, 0.8.10, 0.8.11, 0.8.12, 0.8.13, 0.8.14, 0.8.15, 0.8.16, 0.8.17, 0.8.18, 0.8.19, 0.8.20