# GHSA-9g55-pg62-m8hh: Channel creates zero value of any type

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-05-10T12:00:00.000Z
- Modified: 2023-11-08T04:17:54.817Z
- Also known as: RUSTSEC-2022-0019

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- crossbeam-channel (crates.io): before 0.4.3; from 0.0.0-0 before 0.4.3

## References

- <https://github.com/crossbeam-rs/crossbeam/pull/458> (web)
- <https://github.com/crossbeam-rs/crossbeam> (package)
- <https://rustsec.org/advisories/RUSTSEC-2022-0019.html> (advisory, web)
- <https://crates.io/crates/crossbeam-channel> (package)

## Sources

- GitHub Advisory Database: [GHSA-9g55-pg62-m8hh](https://github.com/advisories/GHSA-9g55-pg62-m8hh), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0019](https://rustsec.org/advisories/RUSTSEC-2022-0019.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-9g55-pg62-m8hh · Whole record: https://cve.day/GHSA-9g55-pg62-m8hh.json · Rebuilt by cve.day 2026-11-25T22:56:43.096Z
