Skip to content

Channel creates zero value of any type

High severity GitHub Reviewed Published Jun 16, 2022 to the GitHub Advisory Database • Updated Jan 12, 2023

Package

cargo crossbeam-channel (Rust)

Affected versions

< 0.4.3

Patched versions

0.4.3

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.

References

Published to the GitHub Advisory Database Jun 16, 2022
Reviewed Jun 16, 2022
Last updated Jan 12, 2023

Severity

High

Weaknesses

No CWEs

CVE ID

No known CVE

GHSA ID

GHSA-9g55-pg62-m8hh
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.