Intel

AIKIDO-2026-406075

skiplist is vulnerable to Use-After-Free

Use-After-FreeGHSA-x6j6-3ffp-qrfr Published 2 days ago

63

Medium Risk

This Affects:

RUSTskiplist
0.1.0 - 1.1.0
Fixed in 1.1.1
Are you affected? Scan for Free

TL;DR

SkipList, SkipMap, and OrderedSkipList free stored elements before they update the tail pointer. If a Drop impl or a user supplied predicate panics, tail still points at freed memory. Later reads of the last element then dereference that pointer through unsafe code, leading to a use-after-free. The fix updates tail and len before running user destructors so a panic no longer leaves freed memory reachable.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and a Drop impl or a user supplied predicate can panic.

Background info

skiplist is vulnerable to Use-After-Free in versions 0.1.0 - 1.1.0.

How to fix this

Upgrade the skiplist library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform