RUSTSEC-2019-0009
Dashboard / Vulnerabilities / RUSTSEC-2019-0009
RUSTSEC-2019-0009
Summary: Double-free and use-after-free in SmallVec::grow()
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. Credits to [@ehuss](https://github.com/ehuss) for discovering, reporting and fixing the bug.
References: https://crates.io/crates/smallvec, https://rustsec.org/advisories/RUSTSEC-2019-0009.html, https://github.com/servo/rust-smallvec/issues/148
Affected packages
Package
Name: smallvec
Purl: pkg:cargo/smallvec
Affected ranges
Type: SEMVER
Events:
