RUSTSEC-2022-0020
MEDIUM`SegQueue` creates zero value of any type
Affected versions of this crate called mem::zeroed() to create values of a user-supplied type T.
This is unsound e.g. if T is a reference type (which must be non-null).
The flaw was corrected by avoiding the use of mem::zeroed(), using MaybeUninit instead.
- Published
- 10 May 2022
- Last modified
- 8 Nov 2023
- Also known as
- GHSA-8gj8-hv75-gp94
- Sources
- OSV GHSA-8gj8-hv75-gp94JSONOSVJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | crossbeam | < 0.7.0 | 0.7.0 |
| OSV | crates.io | crossbeam | >= 0.0.0-0, < 0.7.0 | 0.7.0 |
References
- https://github.com/crossbeam-rs/crossbeam/pull/458 · WEB
- https://github.com/crossbeam-rs/crossbeam · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2022-0020.html · WEB, ADVISORY
- https://crates.io/crates/crossbeam · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 May 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Jun 2022)