Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. crossbeam-queue
  4. ›
  5. GHSA-6888-wf7j-34jq

GHSA-6888-wf7j-34jq: `SegQueue` creates zero value of any type

June 16, 2022

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.

References

  • github.com/advisories/GHSA-6888-wf7j-34jq
  • github.com/crossbeam-rs/crossbeam
  • github.com/crossbeam-rs/crossbeam/pull/458
  • rustsec.org/advisories/RUSTSEC-2022-0021.html

Code Behaviors & Features

Detect and mitigate GHSA-6888-wf7j-34jq with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.2.3

Fixed versions

  • 0.2.3

Solution

Upgrade to version 0.2.3 or above.

Source file

cargo/crossbeam-queue/GHSA-6888-wf7j-34jq.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:16 +0000.