RUSTSEC-2026-0597

Source
https://rustsec.org/advisories/RUSTSEC-2026-0597
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0597.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0597
Published
2026-10-28T12:00:00Z
Modified
2026-11-24T09:30:02Z
Summary
`hugepage_rs::Box::new` may cause undefined behavior when initializing memory
Details

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.

Database specific
{
    "license":  "CC0-1.0"
}
References

Affected packages

crates.io / hugepage-rs

Package

Name
hugepage-rs
View open source insights on deps.dev
Purl
pkg:cargo/hugepage-rs

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.1.2

Ecosystem specific

{
    "affected_functions":  null,
    "affects":  {
        "arch":  [],
        "functions":  [
            "hugepage_rs::Box::new"
        ],
        "os":  []
    }
}

Database specific

categories
[]
cvss
null
informational
"unsound"
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0597.json"