Email me

Rust advisories / skiplist

VulnerabilityRUSTSEC-2026-0300 · skiplist

RUSTSEC-2026-0300: Use-after-free in `clear` and `retain` when an element's `Drop` panics

Short answerA security vulnerability in the skiplist crate: Use-after-free in `clear` and `retain` when an element's `Drop` panics. No severity score was published. Fixed in 1.1.1: update to a fixed version.

Crateskiplist
TypeVulnerability (memory-corruption)
Affected versionsBefore 1.1.1.
Fixed in1.1.1
Severitynot scored
Published2026-09-02
Last changed2026-09-22
Also known asGHSA-x6j6-3ffp-qrfr
Affected functionsskiplist::ordered_skip_list::OrderedSkipList::clear, skiplist::ordered_skip_list::OrderedSkipList::dedup_by, skiplist::ordered_skip_list::OrderedSkipList::retain, skiplist::skip_list::SkipList::clear, skiplist::skip_list::SkipList::dedup_by, skiplist::skip_list::SkipList::retain, skiplist::skip_list::SkipList::retain_mut, skiplist::skip_map::SkipMap::clear, skiplist::skip_map::SkipMap::retain

What to do

  1. See which version you have: cargo tree -i skiplist (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p skiplist. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example skiplist = "1.1.1") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

SkipList::clear drops the node chain and only then resets tail and len. The drop runs each element's Drop, and T carries no bounds excluding a panicking one. If it unwinds, tail still points at the freed node while len stays non-zero.

back(), back_mut(), last_key_value() and last() dereference tail through unsafe, so reading the container after the unwind is a use-after-free (CWE-416). Drop for SkipList calls Box::from_raw on self.head, which clear already destroyed, so dropping the container is a double free (CWE-415).

retain, retain_mut and dedup_by reach the same state through Node::filter_rebuild, which frees nodes and runs a user predicate before the caller commits tail and len. There the head links are left partially rewired, so traversal can also reach freed nodes.

Mitigation

Update to 1.1.1.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ