Advisory

RUSTSEC-2018-0018

Also known as: CVE-2018-25023, GHSA-55m5-whcv-c49c, GHSA-66p5-j55p-32r9

Summary

smallvec creates uninitialized value of any type

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

Not rated by the source.

Dates

Published
2018-09-25 12:00 UTC
Modified
2023-11-08 04:00 UTC

Affected packages and fixes

smallvec

crates.io · All systems

Affected

  • introduced 0.0.0-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: RustSec Advisory Database · CC0-1.0

Sources & licences