VDB
KO
CRITICAL 9.8

GHSA-mm7v-vpv8-xfc3

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io / smallvec
Introduced in: 0.6.5 Fixed in: 0.6.10

Upgrade smallvec to 0.6.10 or newer (ecosystem crates.io).

References