Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-25900 EUVD-2022-2287GHSA-43w2-9j62-hq99RUSTSEC-2021-0003

Buffer overflow in SmallVec::insert_many

Published Jan 22, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

An issue was discovered in the smallvec crate before 0.6.14 and 1.x before 1.6.1 for Rust. There is a heap-based buffer overflow in SmallVec::insert_many.

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-smallvec 1.4.2-2 —
Debian 13 rust-smallvec 1.4.2-2 —
Debian 12 rust-smallvec 1.4.2-2 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-smallvec No fix yet —
Ubuntu 26.04 LTS rust-smallvec No fix yet —
Ubuntu 25.10 rust-smallvec No fix yet —
Ubuntu 24.04 LTS rust-smallvec No fix yet —
Ubuntu 22.04 LTS rust-smallvec No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS rust-smallvec No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP2 librsvg 2.46.5-3.3.1 SUSE-SU-2021:1408-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.2 librsvg 2.46.5-lp152.2.3.1 openSUSE-SU-2021:0634-1

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io smallvec >= 0.6.3, < 0.6.14 0.6.14 GHSA-43w2-9j62-hq99
crates.io smallvec >= 1.0.0, < 1.6.1 1.6.1 GHSA-43w2-9j62-hq99
crates.io smallvec >= 0.6.3, < 0.6.14 · >= 1.0.0, < 1.6.1 0.6.14, 1.6.1 RUSTSEC-2021-0003

Advisories 2

References