Code execution via panic-unsafe element deallocation
Published Apr 20, 2026 · Updated Apr 20, 2026
Memory corruption in Mozilla thin-vec before 0.2.16 allows local users to trigger double frees and use-after-free during element drop. IntoIter::drop and ThinVec::clear call ptr::drop_in_place before zeroing the container length, so a panicking element destructor leaves freed entries marked live and drops them again during unwinding. Exploitation requires heap-owning elements, a destructor panic, and either a partially consumed iterator or clear(); with boxed trait objects, reclaiming the freed slot with an attacker-controlled vtable redirects later drop calls to code execution.
Summary
What happened
Memory corruption in Mozilla thin-vec before 0.2.16 allows local users to trigger double frees and use-after-free during element drop. IntoIter::drop and ThinVec::clear call ptr::drop_in_place before zeroing the container length, so a panicking element destructor leaves freed entries marked live and drops them again during unwinding. Exploitation requires heap-owning elements, a destructor panic, and either a partially consumed iterator or clear(); with boxed trait objects, reclaiming the freed slot with an attacker-controlled vtable redirects later drop calls to code execution.
The record
- CVE
- CVE-2026-6654
- Published
- Apr 20, 2026
- Updated
- Apr 20, 2026
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-415, CWE-1341, CWE-416
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 20, 2026CVE publishedPublication date reported by the CVE source.
- Apr 20, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Mozilla advisory panic-on-drop proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo