Skip to content

Add advisory for hugepage-rs dealloc unsoundness#2977

Open
sisy2020 wants to merge 1 commit into
rustsec:mainfrom
sisy2020:add-hugepage-rs-dealloc-advisory
Open

Add advisory for hugepage-rs dealloc unsoundness#2977
sisy2020 wants to merge 1 commit into
rustsec:mainfrom
sisy2020:add-hugepage-rs-dealloc-advisory

Conversation

@sisy2020

@sisy2020 sisy2020 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Affected crate(s)

  • hugepage-rs (5,405 recent downloads per crates.io)

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

Severity

Soundness issue in a safe public API. hugepage_rs::dealloc accepted an arbitrary raw pointer and Layout, then forwarded them to GlobalAlloc::dealloc, whose safety contract requires the pointer and layout to match an allocation from the same allocator.

Safe callers could therefore trigger undefined behavior without using unsafe.

The issue was fixed upstream by marking dealloc as unsafe, and the fix has been published in 0.1.1.

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

@djc

djc commented Jun 17, 2026

Copy link
Copy Markdown
Member

Waiting for maintainer response. Don't forget to include the crates.io recent download count in your PR descriptions.

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