{"id":"UBUNTU-CVE-2026-6654","details":"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.","modified":"2026-06-30T18:18:08.295464551Z","published":"2026-04-20T11:16:00Z","upstream":["CVE-2026-6654"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-6654"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-6654"},{"type":"REPORT","url":"https://github.com/mozilla/thin-vec/security/advisories/GHSA-xphw-cqx3-667j"}],"affected":[{"package":{"name":"rust-thin-vec","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rust-thin-vec?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.13-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.2.13-1","binary_name":"librust-thin-vec-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-6654.json"}},{"package":{"name":"rust-thin-vec","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/rust-thin-vec?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.13-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-thin-vec-dev","binary_version":"0.2.13-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-6654.json"}},{"package":{"name":"rust-thin-vec","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/rust-thin-vec?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.13-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-thin-vec-dev","binary_version":"0.2.13-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-6654.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}