GHSA-8gj8-hv75-gp94 `SegQueue` creates zero value of any type

Not scored Published

A Rust library flaw allows creating invalid zero-value references, potentially causing crashes or arbitrary code execution in applications using the affected queue.

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

What is GHSA-8gj8-hv75-gp94?

GHSA-8gj8-hv75-gp94 is a vulnerability in crossbeam, 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-8gj8-hv75-gp94?

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

PackageAffectedFixed in
crossbeam crates.ioAll versions0.7.0
crossbeam crates.ioAll versions0.7.0
crossbeam crates.ioFrom 0.0.0-00.7.0

How do I fix GHSA-8gj8-hv75-gp94?

Upgrade crossbeam to 0.7.0 or later.

Is GHSA-8gj8-hv75-gp94 being exploited?

There is no known exploitation of GHSA-8gj8-hv75-gp94 in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2022-0020.

Is GHSA-8gj8-hv75-gp94 in your software?

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

Check your SBOMs for free