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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-20 · Modified: 2026-07-15
- Aliases: UBUNTU-CVE-2026-6654, DEBIAN-CVE-2026-6654, CGA-8cw7-mpqc-p92c, CGA-m433-637j-m4wq, CGA-q4gj-6qjg-jv39, CGA-qrxj-x744-w7r6, CGA-r8fv-v9m7-jf56, CGA-vcph-q85r-384c, CGA-5896-hm2m-jm2p, GHSA-xphw-cqx3-667j, RUSTSEC-2026-0103, CGA-qpx4-h86r-822g
- Record: https://cvemate.com/vulnerability/CVE-2026-6654 · JSON: https://cvemate.com/vulnerability/CVE-2026-6654/json

## Description

```text
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.
```

## Signals

- CVSS: 5.1 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.171%, percentile 6.791%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard ruff (Chainguard): \< 0.15.11-r0 \| \< 0.15.10-r0
- chainguard ruff-python-formatter (Chainguard): \< 0.15.10-r0 \| \< 0.15.11-r0
- chainguard rust-analyzer (Chainguard): \< 20260413-r1
- chainguard typst (Chainguard): \< 0.14.2-r5
- wolfi ruff (Wolfi): \< 0.15.11-r0 \| \< 0.15.10-r0
- wolfi ruff-python-formatter (Wolfi): \< 0.15.10-r0 \| \< 0.15.11-r0
- wolfi rust-analyzer (Wolfi): \< 20260413-r1
- Crates.Io thin-vec (Crates.Io): \< 0.2.16 \| ≥ 0.0.0-0, \< 0.2.16
- debian rust-thin-vec (Debian): All versions (No fix recorded) \| \< 0.2.17-1
- ubuntu rust-thin-vec (Ubuntu): All versions (No fix recorded)
- mozilla thin-vec: 0.2.15

## References

- <https://github.com/mozilla/thin-vec/security/advisories/GHSA-xphw-cqx3-667j>
- <https://access.redhat.com/security/cve/CVE-2026-6654>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2459689>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6654.json>
- <https://ubuntu.com/security/CVE-2026-6654>
- <https://www.cve.org/CVERecord?id=CVE-2026-6654>
- <https://security-tracker.debian.org/tracker/CVE-2026-6654>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6654.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6654>
- <https://github.com/mozilla/thin-vec>
- <https://rustsec.org/advisories/RUSTSEC-2026-0103.html>
- <https://crates.io/crates/thin-vec>
- <https://github.com/mozilla/thin-vec/commit/df64748355222525c344ecd9d2c9f59a662e1678>

---

Data as of 2026-12-05T12:43:15.139Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
