{"id":"RUSTSEC-2026-0298","revision":"c6420d27333e4df280ec8d4f6958ed45","records":[{"revision":"c6420d27333e4df280ec8d4f6958ed45","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0298","aliases":["GHSA-8gw6-724c-9h38"],"title":"Use-after-free when a future's `Drop` panics while the container is dropped","description":"`Storage::clear` walks the slab, empties each entry and frees the `Task`\nallocation once its reference count reaches zero. `self.tasks.set_len(0)` only\nruns after the loop.\n\nEmptying an entry drops the user future it holds, and `T` carries no bounds\nexcluding a panicking `Drop`. If one unwinds, the length is never committed and\n`self.tasks` still holds the pointers already processed. `Drop for Storage`\ncalls `clear` again, and the second pass dereferences `(*task.as_ptr()).entry`\non allocations the first pass already freed — a use-after-free (CWE-416)\nreachable from safe Rust.\n\n`Storage` is reached only through `Unordered`, whose `Drop` calls `clear`. No\nparticular method call is needed; dropping the container is enough.\n\n## Mitigation\n\nUpdate to 0.10.3.","state":0,"publishedAt":"2026-09-12T12:00:00+00:00","modifiedAt":"2026-09-22T07:45:03.8956434+00:00","affected":[{"ecosystem":"crates.io","name":"unicycle","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.10.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/unicycle","https://rustsec.org/advisories/RUSTSEC-2026-0298.html","https://github.com/udoprog/unicycle/commit/4f1492a266824f8aa66fd6b27fa6188bf826bdfd"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0298","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0298","identifiers":["RUSTSEC-2026-0298","GHSA-8gw6-724c-9h38"]},"retained":false,"historicalAffected":[]}],"coverage":[]}