Skip to content

fix(deps): patch lru use-after-free - #74

Merged
Windsor Nguyễn (windsornguyen) merged 1 commit into
codex/build-manifest-namefrom
fix/lru-panic-safety-pr40
Aug 12, 2026
Merged

fix(deps): patch lru use-after-free#74
Windsor Nguyễn (windsornguyen) merged 1 commit into
codex/build-manifest-namefrom
fix/lru-panic-safety-pr40

Conversation

@windsornguyen

@windsornguyen Windsor Nguyễn (windsornguyen) commented Aug 12, 2026

Copy link
Copy Markdown
Member

Depends on #40.

What does this change?

This PR updates lru to 0.18.2 in both Cargo dependency sets and regenerates both lockfiles.

RUSTSEC-2026-0253 reports a panic-safety defect in LruCache::pop(). The defect can permit use-after-free or double-free from safe Rust. Version 0.18.2 contains the fix.

The root workspace continues to use default-features = false. The Reindeer workspace updates the same direct dependency and removes the unused hashbrown 0.16.1 lock entry. The dependency gate remains enabled.

PR #64 applies the same update to the benchmark and Go stack. This PR applies the update directly above #40 without changing that stack.

How was it tested?

  • OSV Scanner 2.4.0 reported zero actionable vulnerabilities in both lockfiles.

  • cargo tree -i lru@0.18.2 --locked.

  • cargo -Z bindeps tree --manifest-path tools/build/third-party/rust/Cargo.toml -i lru@0.18.2 --locked.

  • cargo check -p remote_execution --locked.

  • cargo test -p remote_execution --lib --locked passed 19 tests.

  • cargo clippy -p remote_execution --lib --no-deps --locked -- -D warnings -A clippy::too-many-arguments -A clippy::single-match.

  • ./tools/bin/reindeer --third-party-dir tools/build/third-party/rust buckify produced no tracked changes.

  • pnpm exec tsc --noEmit.

  • pnpm run ci check passed 23 tests and the workflow security checks.

  • pnpm run ci check license.

  • CLA/Vouch check passes, or this PR only updates VOUCHED.td.

Reviewers

Resolves RUSTSEC-2026-0253 (potential use-after-free due to lack of
panic safety in LruCache::pop) flagged by the OSV dependency audit.
The API surface we use (new, get, put, clear) is unchanged between
0.16.4 and 0.18.2.

Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
Merged via the queue into main with commit e5b84da Aug 12, 2026
12 checks passed
@windsornguyen
Windsor Nguyễn (windsornguyen) deleted the fix/lru-panic-safety-pr40 branch August 12, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants