# GHSA-8gj8-hv75-gp94: `SegQueue` creates zero value of any type

- Severity: Medium (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:21.695Z
- Also known as: RUSTSEC-2022-0020

## 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 (crates.io): before 0.7.0; from 0.0.0-0 before 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> (advisory, web)
- <https://crates.io/crates/crossbeam> (package)

## Sources

- GitHub Advisory Database: [GHSA-8gj8-hv75-gp94](https://github.com/advisories/GHSA-8gj8-hv75-gp94), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0020](https://rustsec.org/advisories/RUSTSEC-2022-0020.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-8gj8-hv75-gp94 · Whole record: https://cve.day/GHSA-8gj8-hv75-gp94.json · Rebuilt by cve.day 2026-11-25T22:56:43.096Z
