{"id":"GHSA-8gj8-hv75-gp94","aliases":["RUSTSEC-2022-0020"],"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:17:21Z","fixes":[{"ecosystem":"crates.io","package":"crossbeam","fixed_in":["0.7.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"crossbeam","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"crossbeam","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"crossbeam","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.7.0"}]}]}],"references":[{"url":"https://github.com/crossbeam-rs/crossbeam/pull/458","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0020.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-8gj8-hv75-gp94"},{"url":"https://github.com/crossbeam-rs/crossbeam","tags":["package"]},{"url":"https://crates.io/crates/crossbeam","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-8gj8-hv75-gp94","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:51:13Z","modified":"2023-01-12T05:01:07Z","updated_at":"2026-11-02T14:36:13.23016Z"}],"osv":[{"id":"GHSA-8gj8-hv75-gp94","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:51:13Z","modified":"2023-11-08T04:17:21.695455Z","updated_at":"2026-11-02T15:46:42.437513Z"},{"id":"RUSTSEC-2022-0020","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:17:21.695455Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
