Skip to content

CVE-2026-6654 Use-After-Free and Double-Free in IntoIter::drop when element drop panics

MediumCVSS 5.1 EPSS 0.17%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

Double-Free / Use-After-Free (UAF) in the IntoIter::drop and ThinVec::clear functions in the thin_vec crate. A panic in ptr::drop_in_place skips setting the length to zero.

Upgrade path

9 packages: 2 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
debian/rust-thin-vec(Debian 13) = 0.2.13-2; = 0.2.17-1; = 0.2.21-1; All versions No fix listed No fix yet
ubuntu/rust-thin-vec(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/rust-thin-vec(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/rust-thin-vec(Ubuntu 26.10) All versions No fix listed No fix yet
crates.io thin-vec(crates.io) < 0.2.16; >= 0.0.0-0, < 0.2.16 0.2.16 Fixed
debian/rust-thin-vec(Debian 14) < 0.2.17-1; = 0.2.13-2 0.2.17-1 Fixed
mozilla thin-vec = 0.2.15 No fix listed Versions listed
redhat enterprise linux = 7; = 8; = 9; = 10 No fix listed Versions listed
redhat enterprise linux ai = 3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
crates.io thin-vec(crates.io) < 0.2.16 0.2.16
crates.io thin-vec(crates.io) >= 0.0.0-0, < 0.2.16 0.2.16
redhat enterprise linux = 10 No fix listed
redhat enterprise linux = 7 No fix listed
redhat enterprise linux = 8 No fix listed
redhat enterprise linux = 9 No fix listed
redhat enterprise linux ai = 3 No fix listed
debian/rust-thin-vec(Debian:13) All versions No fix listed
debian/rust-thin-vec(Debian:13) = 0.2.13-2 No fix listed
debian/rust-thin-vec(Debian:13) = 0.2.17-1 No fix listed
debian/rust-thin-vec(Debian:13) = 0.2.21-1 No fix listed
debian/rust-thin-vec(Debian:14) < 0.2.17-1 0.2.17-1
debian/rust-thin-vec(Debian:14) = 0.2.13-2 No fix listed
ubuntu/rust-thin-vec(Ubuntu:24.04) All versions No fix listed
ubuntu/rust-thin-vec(Ubuntu:26.04) All versions No fix listed
ubuntu/rust-thin-vec(Ubuntu:26.10) All versions No fix listed
mozilla thin-vec = 0.2.15 No fix listed

References