{"id":"RUSTSEC-2026-0597","aliases":[],"title":"`hugepage_rs::Box::new` may cause undefined behavior when initializing memory","titleSource":"OSV","descriptionSource":"OSV","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.\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.","severity":"unknown","score":null,"published":"2026-10-28T12:00:00.000Z","modified":"2026-11-24T09:30:02.335Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"hugepage-rs","sources":[{"name":"OSV · RUSTSEC-2026-0597","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0597"}],"ranges":[{"events":[{"introduced":"0.0.0-0"},{"fixed":"0.1.2"}],"type":"SEMVER"}],"versions":[],"fixed":["0.1.2"]}],"sourceAffected":[],"references":["https://crates.io/crates/hugepage-rs","https://rustsec.org/advisories/RUSTSEC-2026-0597.html","https://github.com/cppcoffee/hugepage-rs/issues/9","https://github.com/cppcoffee/hugepage-rs/pull/8","https://github.com/cppcoffee/hugepage-rs/releases/tag/v0.1.2"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0597","modified":"2026-11-24T09:30:02.335495410Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0597"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-24T10:00:57.144Z","kev":{"status":"unavailable","checkedAt":"2026-11-30T01:05:31.319Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}