Hugepage rs: `hugepage_rs::Box::new` may cause undefined behavior when initializing memory
Affects hugepage-rsSource GCVE Database
Rated High by Threat Radar's AI analysis
- Patch
- Available – fixed in 0.1.2
Data as of 24 Nov 2026, 10:24 UTC
What to do
Upgrade hugepage-rs to 0.1.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
crates.iohugepage-rspkg:cargo/hugepage-rsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to hugepage-rs version 0.1.2 or later, where the issue is fixed by proper memory initialization. No other mitigation is required as the patch fully addresses the vulnerability.
Description
The hugepage-rs crate version before 0.1.2 contains a vulnerability in the `hugepage_rs::Box::new` function where memory is incorrectly initialized. This can cause undefined behavior by either dropping uninitialized data or creating mutable references to uninitialized memory, even when used in safe Rust code. The issue was fixed in version 0.1.2 by properly initializing memory using a raw pointer write operation.
References
- crates.io/crates/hugepage-rs (opens in a new tab)
- rustsec.org/advisories/RUSTSEC-2026-0597.html (opens in a new tab)
- github.com/cppcoffee/hugepage-rs/issues/9 (opens in a new tab)
- github.com/cppcoffee/hugepage-rs/pull/8 (opens in a new tab)
- github.com/cppcoffee/hugepage-rs/releases/tag/v0.1.2 (opens in a new tab)