# CVE-2026-6654: rust-thin-vec: Double-Free / Use-After-Free (UAF) in the `IntoIter::drop` and `ThinVec::clear` functions in the thin_vec crate

CVE-2026-6654 is fixed in 25 products on 1 platform, first by ALAS2023-2026-1676, released May 11, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-6654
- Priority: Routine
- CVSS: 5.1 (medium)
- EPSS: 0.0017
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 20, 2026

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | cargo amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | cargo-debuginfo amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | clippy amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | clippy-debuginfo amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | firefox amzn 2023 | 140.10.1-1.amzn2023.0.1 | [ALAS2023-2026-1652](https://patchblox.com/security/data/fix/linux/alas2023-2026-1652.md) | May 11, 2026 |
| Linux | firefox-debuginfo amzn 2023 | 140.10.1-1.amzn2023.0.1 | [ALAS2023-2026-1652](https://patchblox.com/security/data/fix/linux/alas2023-2026-1652.md) | May 11, 2026 |
| Linux | firefox-debugsource amzn 2023 | 140.10.1-1.amzn2023.0.1 | [ALAS2023-2026-1652](https://patchblox.com/security/data/fix/linux/alas2023-2026-1652.md) | May 11, 2026 |
| Linux | rust amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-analyzer amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-analyzer-debuginfo amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-debugger-common amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-debuginfo amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-debugsource amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-doc amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-gdb amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-lldb amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-src amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-std-static amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-std-static-wasm32-unknown-unknown amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-std-static-wasm32-wasip1 amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-thin-vec Debian 14 | 0.2.17-1 | [DEBIAN-CVE-2026-6654](https://patchblox.com/security/data/fix/linux/debian-cve-2026-6654.md) | May 15, 2026 |
| Linux | rust-toolset amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rust-toolset-srpm-macros amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rustfmt amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |
| Linux | rustfmt-debuginfo amzn 2023 | 1.95.0-1.amzn2023.0.2 | [ALAS2023-2026-1676](https://patchblox.com/security/data/fix/linux/alas2023-2026-1676.md) | May 11, 2026 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
