Skip to content
OpenAdvisories
High · 7.3 CVE-2021-29939 EUVD-2021-1659GHSA-9frf-r7c7-j2vgRUSTSEC-2021-0048

Out of bounds write in stackvector

Published Apr 1, 2021 · Updated Nov 19, 2024 · Assigned by mitre

Description

An issue was discovered in the stackvector crate through 2021-02-19 for Rust. There is an out-of-bounds write in StackVec::extend if size_hint provides certain anomalous data.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-stackvector 1.0.6-3 —
Debian 13 rust-stackvector 1.0.6-3 —
Debian 12 rust-stackvector 1.0.6-3 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-stackvector No fix yet —
Ubuntu 26.04 LTS rust-stackvector No fix yet —
Ubuntu 25.10 rust-stackvector No fix yet —
Ubuntu 24.04 LTS rust-stackvector No fix yet —
Ubuntu 22.04 LTS rust-stackvector No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS rust-stackvector No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io stackvector < 1.0.9 1.0.9 GHSA-9frf-r7c7-j2vg
crates.io stackvector >= 0.0.0-0, < 1.0.9 1.0.9 RUSTSEC-2021-0048

References