RUSTSEC-2026-0597
Not scored
`hugepage_rs::Box::new` may cause undefined behavior when initializing memory
- Severity
- Not scored
- Published
- Last changed
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| hugepage-rs (crates.io) | from 0.0.0-0 before 0.1.2 | RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| RustSec Advisory Database | RUSTSEC-2026-0597 changed 2026-11-24 | CC0-1.0 |