Security mailing lists by PureSourceCode

GHSA-8gw6-724c-9h38

not scored yet

Use-after-free when a future's `Drop` panics while the container is dropped

Storage::clear walks the slab, empties each entry and frees the Task
allocation once its reference count reaches zero. self.tasks.set_len(0) only
runs after the loop.

Emptying an entry drops the user future it holds, and T carries no bounds
excluding a panicking Drop. If one unwinds, the length is never committed and
self.tasks still holds the pointers already processed. Drop for Storage
calls clear again, and the second pass dereferences (*task.as_ptr()).entry
on allocations the first pass already freed — a use-after-free (CWE-416)
reachable from safe Rust.

Storage is reached only through Unordered, whose Drop calls clear. No
particular method call is needed; dropping the container is enough.

Mitigation

Update to 0.10.3.

Published
12 Sep 2026
Last modified
22 Sep 2026
Also known as
RUSTSEC-2026-0298
Sources
OSV RUSTSEC-2026-0298JSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io unicycle >= 0.0.0-0, < 0.10.3 0.10.3

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Sep 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.