5.1Medium

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

Mozilla thin-vec; Red Hat Red Hat Enterprise Linux 10; Red Hat Red Hat Enterprise Linux 7; Red Hat Red Hat Enterprise Linux 8 Published: (7 months ago)

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.

Weakness (CWE): CWE-415CWE-416CWE-1341

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:mozilla:thin-vec:0.2.15:*:*:*:*:rust:*:*