Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. crossbeam-channel
  4. ›
  5. GHSA-9g55-pg62-m8hh

GHSA-9g55-pg62-m8hh: Channel 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-9g55-pg62-m8hh
  • github.com/crossbeam-rs/crossbeam
  • github.com/crossbeam-rs/crossbeam/pull/458
  • rustsec.org/advisories/RUSTSEC-2022-0019.html

Code Behaviors & Features

Detect and mitigate GHSA-9g55-pg62-m8hh 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.4.3

Fixed versions

  • 0.4.3

Solution

Upgrade to version 0.4.3 or above.

Source file

cargo/crossbeam-channel/GHSA-9g55-pg62-m8hh.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:29 +0000.