skiplist is vulnerable to Use-After-Free
63
Medium Risk
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.
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.
skiplist is vulnerable to Use-After-Free in versions 0.1.0 - 1.1.0.
Upgrade the skiplist library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.