Advisory

GHSA-mm7v-vpv8-xfc3

Also known as: CVE-2019-15551, RUSTSEC-2019-0009

Summary

Double free in smallvec

Details

Attempting to call grow on a spilled SmallVec with a value equal to the current capacity causes it to free the existing data. This performs a double free immediately and may lead to use-after-free on subsequent accesses to the SmallVec contents. An attacker that controls the value passed to grow may exploit this flaw to obtain memory contents or gain remote code execution.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 20:44 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

smallvec

crates.io · All systems

Affected

  • introduced 0.6.5, fixed 0.6.10 (semver)

Fixed versions

0.6.10

Fix

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

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