Advisory

GHSA-6888-wf7j-34jq

Also known as: RUSTSEC-2022-0021

Summary

SegQueue creates zero value of any type

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-06-16 23:50 UTC
Modified
2023-11-08 04:16 UTC

Affected packages and fixes

crossbeam-queue

crates.io · All systems

Affected

  • introduced 0, fixed 0.2.3 (semver)

Fixed versions

0.2.3

Fix

  • Fixed version 0.2.3
    cargo update -p crossbeam-queue --precise 0.2.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences