GHSA-9g55-pg62-m8hh Channel creates zero value of any type

Not scored Published

Unsound memory initialization in a Rust channel crate allows attackers to trigger memory corruption or crashes by supplying specific types.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is GHSA-9g55-pg62-m8hh?

GHSA-9g55-pg62-m8hh is a memory corruption vulnerability in crossbeam-channel, published on 10 May 2022.

Official 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.

Which versions are affected by GHSA-9g55-pg62-m8hh?

3 open source packages ship an affected version, including crossbeam-channel.

PackageAffectedFixed in
crossbeam-channel crates.ioAll versions0.4.3
crossbeam-channel crates.ioAll versions0.4.3
crossbeam-channel crates.ioFrom 0.0.0-00.4.3

How do I fix GHSA-9g55-pg62-m8hh?

Upgrade crossbeam-channel to 0.4.3 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is GHSA-9g55-pg62-m8hh being exploited?

There is no known exploitation of GHSA-9g55-pg62-m8hh in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2022-0019.

Is GHSA-9g55-pg62-m8hh in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free