{"id":"GHSA-9g55-pg62-m8hh","aliases":["RUSTSEC-2022-0019"],"status":"published","title":"Channel 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:54Z","fixes":[{"ecosystem":"crates.io","package":"crossbeam-channel","fixed_in":["0.4.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"crossbeam-channel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"crossbeam-channel","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"crossbeam-channel","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.4.3"}]}]}],"references":[{"url":"https://github.com/crossbeam-rs/crossbeam/pull/458","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0019.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-9g55-pg62-m8hh"},{"url":"https://github.com/crossbeam-rs/crossbeam","tags":["package"]},{"url":"https://crates.io/crates/crossbeam-channel","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-9g55-pg62-m8hh","title":"Channel 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:49:25Z","modified":"2023-01-12T05:01:06Z","updated_at":"2026-11-02T14:36:13.23016Z"}],"osv":[{"id":"GHSA-9g55-pg62-m8hh","title":"Channel 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:49:25Z","modified":"2023-11-08T04:17:54.817918Z","updated_at":"2026-11-02T15:46:43.875515Z"},{"id":"RUSTSEC-2022-0019","title":"Channel 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:54.817918Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
