{"id":"GHSA-6888-wf7j-34jq","aliases":["RUSTSEC-2022-0021"],"status":"published","title":"`SegQueue` creates zero value of any type","description":"Affected versions of this crate called `mem::zeroed()` to create values of a user-supplied type `T`.\nThis is unsound e.g. if `T` is a reference type (which must be non-null).\n \nThe flaw was corrected by avoiding the use of `mem::zeroed()`, using `MaybeUninit` instead.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2022-05-10T12:00:00Z","modified":"2023-11-08T04:16:08Z","fixes":[{"ecosystem":"crates.io","package":"crossbeam-queue","fixed_in":["0.2.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"crossbeam-queue","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"crossbeam-queue","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.2.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"crossbeam-queue","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.2.3"}]}]}],"references":[{"url":"https://github.com/crossbeam-rs/crossbeam/pull/458","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0021.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-6888-wf7j-34jq"},{"url":"https://github.com/crossbeam-rs/crossbeam","tags":["package"]},{"url":"https://crates.io/crates/crossbeam-queue","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-6888-wf7j-34jq","title":"`SegQueue` creates zero value of any type","description":"Affected versions of this crate called `mem::zeroed()` to create values of a user-supplied type `T`.\nThis is unsound e.g. if `T` is a reference type (which must be non-null).\n \nThe flaw was corrected by avoiding the use of `mem::zeroed()`, using `MaybeUninit` instead.\n","status":"published","published":"2022-06-16T23:50:05Z","modified":"2023-01-12T05:01:04Z","updated_at":"2026-11-02T14:36:13.23016Z"}],"osv":[{"id":"GHSA-6888-wf7j-34jq","title":"`SegQueue` creates zero value of any type","description":"Affected versions of this crate called `mem::zeroed()` to create values of a user-supplied type `T`.\nThis is unsound e.g. if `T` is a reference type (which must be non-null).\n \nThe flaw was corrected by avoiding the use of `mem::zeroed()`, using `MaybeUninit` instead.\n","status":"published","published":"2022-06-16T23:50:05Z","modified":"2023-11-08T04:16:08.764113Z","updated_at":"2026-11-02T15:46:39.266402Z"},{"id":"RUSTSEC-2022-0021","title":"`SegQueue` creates zero value of any type","description":"Affected versions of this crate called `mem::zeroed()` to create values of a user-supplied type `T`.\nThis is unsound e.g. if `T` is a reference type (which must be non-null).\n \nThe flaw was corrected by avoiding the use of `mem::zeroed()`, using `MaybeUninit` instead.","status":"published","published":"2022-05-10T12:00:00Z","modified":"2023-11-08T04:16:08.764113Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
