CVE-2026-6654 Details
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.
A double-free and use-after-free vulnerability has been identified in the `thin_vec` crate, specifically in the `IntoIter::drop` and `ThinVec::clear` functions. This vulnerability allows for memory corruption using only safe Rust code, without the need for `unsafe` blocks. The issue arises when a panic occurs during the deallocation of elements, preventing the length of the vector from being properly reset. As a result, the vector is dropped again during stack unwinding, leading to a double-free condition and the potential for use-after-free scenarios. This vulnerability has been confirmed to cause undefined behavior through the use of Miri and AddressSanitizer.
Users can update to version 0.2.16 of the `thin_vec` crate, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-6654 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2459689 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6654.json | redhat-SADP | |
| https://github.com/mozilla/thin-vec/security/advisories/GHSA-xphw-cqx3-667j | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1341 | Multiple Releases of Same Resource or Handle | redhat-SADP |
| CWE-415 | Double Free | CISA-ADP |
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| mozilla thin-vec | 0.2.15 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | Initial Analysis | [email protected] |
| Apr 20, 2026 | CVE Modified | CISA-ADP |
| Apr 20, 2026 | New CVE Received | [email protected] |