Skip to content
OpenAdvisories

Package · crates.io

lru

3 known vulnerabilities.

3 results · Feed

  • Unscored —

    Potential use-after-free due to lack of panic safety in `LruCache::pop()`

    `LruCache::pop()` in `lru` was not panic-safe. If the `Drop` implementation of a stored key panics during `pop()`, `self.detach()` is never called, leaving dangling pointers in the internal doubly-linked list. A subsequent cache operation that triggers evicti…

  • Low —

    `IterMut` violates Stacked Borrows by invalidating internal pointer

    Affected versions of this crate contain a soundness issue in the `IterMut` iterator implementation. The `IterMut::next` and `IterMut::next_back` methods temporarily create an exclusive reference to the key when dereferencing the internal node pointer. This in…

  • High 7.5

    Use after free in lru crate

    An issue was discovered in the lru crate before 0.7.1 for Rust. The iterators have a use-after-free, as demonstrated by an access after a pop operation.