{"id":"RUSTSEC-2026-0597","aliases":["RUSTSEC-2026-0597"],"related":[],"kind":"vulnerability","state":"published","title":"`hugepage_rs::Box::new` may cause undefined behavior when initializing memory","summary":"`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.\n\nThe issue was fixed in version `0.1.2` by using `ptr::write(nn.as_ptr(), data)` to initialize memory directly through a raw pointer.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"`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.\n\nThe issue was fixed in version `0.1.2` by using `ptr::write(nn.as_ptr(), data)` to initialize memory directly through a raw pointer.","format":"markdown","source":"rustsec"}],"published":"2026-10-28T12:00:00.000Z","modified":"2026-11-24T09:30:02.335Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.1.2"}],"ecosystem":"crates.io","package":"hugepage-rs","purl":"pkg:cargo/hugepage-rs","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/hugepage-rs","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0597.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/cppcoffee/hugepage-rs/issues/9","tags":["report"],"sources":["rustsec"]},{"url":"https://github.com/cppcoffee/hugepage-rs/pull/8","tags":["web"],"sources":["rustsec"]},{"url":"https://github.com/cppcoffee/hugepage-rs/releases/tag/v0.1.2","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0597","url":"https://rustsec.org/advisories/RUSTSEC-2026-0597.html","licence":"CC0-1.0","modified":"2026-11-24T09:30:02.335Z"}],"updatedAt":"2026-11-25T22:56:43.525Z"}