Skip to content

Add advisory for loom: Lazy::get can return a dangling &'static reference#2920

Closed
yilin0518 wants to merge 1 commit into
rustsec:mainfrom
yilin0518:loom
Closed

Add advisory for loom: Lazy::get can return a dangling &'static reference#2920
yilin0518 wants to merge 1 commit into
rustsec:mainfrom
yilin0518:loom

Conversation

@yilin0518
Copy link
Copy Markdown

@yilin0518 yilin0518 commented May 28, 2026

Affected crate(s)

  • loom (7,612,927 recent downloads on crates.io)

Links to upstream issue(s) or PR(s)

Severity

Soundness issue: Lazy::get returns a 'static reference that can outlive the loom model execution scope, leading to a dangling reference/use-after-free in safe code.

Checklist

  • Advisory filename(s) starts with RUSTSEC-0000-0000 as the ID
  • date field is set to the public disclosure date
  • Contains a concise and descriptive title after advisory metadata
  • Asked maintainer(s) if publishing an advisory is appropriate

The issue has been public for more than two months without upstream response.

@djc
Copy link
Copy Markdown
Member

djc commented Jun 1, 2026

Pinged the Discord channel about this one to see if we can make some progress.

@djc
Copy link
Copy Markdown
Member

djc commented Jun 1, 2026

loom is intended to a be a testing tool; therefore, UB should not be relevant for production deployments.

@djc djc closed this Jun 1, 2026
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