Advisory

GHSA-66p5-j55p-32r9

Also known as: CVE-2018-25023, GHSA-55m5-whcv-c49c, RUSTSEC-2018-0018

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-08-25 21:00 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