fix(deps): update rust crate lru to 0.18.0 [security] - #54
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
|
renovate
Bot
force-pushed
the
renovate/crate-lru-vulnerability
branch
from
August 26, 2026 21:37
e9fef51 to
427f2da
Compare
renovate
Bot
force-pushed
the
renovate/crate-lru-vulnerability
branch
from
September 2, 2026 22:33
427f2da to
6049429
Compare
renovate
Bot
force-pushed
the
renovate/crate-lru-vulnerability
branch
from
September 7, 2026 18:15
6049429 to
53b6771
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.16.0→0.18.0Potential use-after-free due to lack of panic safety in
LruCache::pop()RUSTSEC-2026-0253
More information
Details
LruCache::pop()inlruwas not panic-safe. If theDropimplementation of a stored key panics duringpop(),self.detach()is never called, leaving dangling pointers in the internal doubly-linked list.A subsequent cache operation that triggers eviction can then dereference these dangling pointers:
detach()callImpact
Both types of undefined behavior can be invoked in safe Rust, but only if unwinding panics are enabled and
std::panic::catch_unwindis used with key types that have potentially-panickingDropimplementations.Fix
Fixed in
lru0.18.2 by detaching the node from the linked list before freeing it and dropping the key (lru-rs#238).Severity
Unknown
References
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
Release Notes
jeromefroe/lru-rs (lru)
v0.18.2Compare Source
popmethod.v0.18.1Compare Source
find_and_promotemethod.v0.18.0Compare Source
get_or_insert_mut_ref.v0.17.0Compare Source
hashbrownto 0.17.0 and update MSRV to 1.85.0.v0.16.4Compare Source
get_or_insert_with_keyand variants.Configuration
📅 Schedule: (in timezone America/Denver)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.