RUSTSEC-2026-0597
not scored yet`hugepage_rs::Box::new` may cause undefined behavior when initializing memory
hugepage_rs::Box::new incorrectly initialized freshly allocated memory. Earlier implementations could either drop an uninitialized T or create a mutable reference before the memory contained a valid T, causing undefined behavior even when called from safe Rust code.
The issue was fixed in version 0.1.2 by using ptr::write(nn.as_ptr(), data) to initialize memory directly through a raw pointer.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | hugepage-rs | >= 0.0.0-0, < 0.1.2 | 0.1.2 |
References
- https://crates.io/crates/hugepage-rs · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0597.html · ADVISORY
- https://github.com/cppcoffee/hugepage-rs/issues/9 · REPORT
- https://github.com/cppcoffee/hugepage-rs/pull/8 · WEB
- https://github.com/cppcoffee/hugepage-rs/releases/tag/v0.1.2 · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Oct 2026)