Skip to content

fix: bump rand to 0.10.1 to resolve RUSTSEC-2026-0097#374

Merged
telecos merged 2 commits intomainfrom
copilot/rustsec-2026-0097-fix-rand-logger-issue
Apr 19, 2026
Merged

fix: bump rand to 0.10.1 to resolve RUSTSEC-2026-0097#374
telecos merged 2 commits intomainfrom
copilot/rustsec-2026-0097-fix-rand-logger-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 19, 2026

rand 0.10.0 is unsound when a custom logger calls rand::rng() and triggers a reseed mid-TryRng call, producing an aliased &mut reference — UB detectable by Miri. Fixed in rand 0.10.1.

Changes

  • crates/wgpu_playground_examples/Cargo.toml: tightened rand = "0.10"rand = "0.10.1" so Cargo's minimum resolved version is the patched release rather than the vulnerable 0.10.0

Copilot AI changed the title [WIP] Fix unsoundness in rand library with custom logger fix: bump rand to 0.10.1 to resolve RUSTSEC-2026-0097 Apr 19, 2026
Copilot AI requested a review from telecos April 19, 2026 20:38
@telecos telecos marked this pull request as ready for review April 19, 2026 23:16
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Copy Markdown

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 0a67e37. ± Comparison against base commit d193b85.

@telecos telecos merged commit 471d849 into main Apr 19, 2026
29 checks passed
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.

RUSTSEC-2026-0097: Rand is unsound with a custom logger using rand::rng()

2 participants