# GHSA-6888-wf7j-34jq: `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:16:08.764Z
- Also known as: RUSTSEC-2022-0021

## 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-queue (crates.io): before 0.2.3; from 0.0.0-0 before 0.2.3

## References

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

## Sources

- GitHub Advisory Database: [GHSA-6888-wf7j-34jq](https://github.com/advisories/GHSA-6888-wf7j-34jq), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0021](https://rustsec.org/advisories/RUSTSEC-2022-0021.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-6888-wf7j-34jq · Whole record: https://cve.day/GHSA-6888-wf7j-34jq.json · Rebuilt by cve.day 2026-11-25T22:56:43.096Z
