Medium
Use-After-Free and Double-Free in IntoIter::drop when element drop panics
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-6654
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 03:52 UTC · Revision 1
Source evidence
Use-After-Free and Double-Free in IntoIter::drop when element drop panics
core-osv · Original sourcePublished 20 Apr 2026, 10:05 UTC
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.
osv:CVE-2026-6654
Complete source record
{
"id": "0b4431c6a4cd39df86c411a1a734d27f61df4570e197607f13442ebb641dc594",
"url": "https://osv.dev/vulnerability/CVE-2026-6654",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Use-After-Free and Double-Free in IntoIter::drop when element drop panics",
"summary": "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.",
"evidence": "osv:CVE-2026-6654",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-6654",
"aliases": [
"CVE-2026-6654",
"GHSA-xphw-cqx3-667j",
"RUSTSEC-2026-0103"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mozilla/thin-vec",
"type": "GIT",
"events": [
{
"introduced": "70bcca0960a7e11056fa3281445d08052421dab5"
},
{
"last_affected": "70bcca0960a7e11056fa3281445d08052421dab5"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mozilla:thin-vec:0.2.15:*:*:*:*:rust:*:*",
"range": [
{
"introduced": "0.2.15"
},
{
"last_affected": "0.2.15"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"0.2.15",
"v0.2.15"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-6654.json"
}
}
],
"modified": "2026-10-28T02:30:26.069681478Z",
"provider": "osv",
"references": [
"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6654.json",
"https://access.redhat.com/security/cve/CVE-2026-6654",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6654.json",
"https://github.com/mozilla/thin-vec/security/advisories/GHSA-xphw-cqx3-667j",
"https://nvd.nist.gov/vuln/detail/CVE-2026-6654",
"https://bugzilla.redhat.com/show_bug.cgi?id=2459689"
],
"provider_metadata": {
"cna_assigner": "mozilla",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6654.json"
}
},
"related_cves": [
{
"value": "CVE-2026-6654",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 492279,
"published_at": "2026-04-20T10:05:52.339+00:00"
}