Advisory

GHSA-55m5-whcv-c49c

Also known as: CVE-2018-25023, GHSA-66p5-j55p-32r9, RUSTSEC-2018-0018

Summary

Use of Uninitialized Resource in smallvec

Details

Affected versions of this crate called mem::uninitialized() 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 and thus may not remain uninitialized). The flaw was corrected by avoiding the use of mem::uninitialized(), using MaybeUninit instead.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-01-06 22:20 UTC
Modified
2023-11-08 04:00 UTC

Affected packages and fixes

smallvec

crates.io · All systems

Affected

  • introduced 0, fixed 0.6.13 (semver)

Fixed versions

0.6.13

Fix

  • Fixed version 0.6.13
    cargo update -p smallvec --precise 0.6.13

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