Security mailing lists by PureSourceCode

RUSTSEC-2026-0598

not scored yet

`hugepage_rs::alloc` may cause undefined behavior with zero-sized layouts from safe code

hugepage_rs::alloc was a publicly accessible safe function that forwarded a Layout to the hugepage allocator's GlobalAlloc::alloc implementation without enforcing its safety requirements.
GlobalAlloc::alloc requires the layout size to be non-zero. However, the safe wrapper allowed callers to pass a zero-sized Layout, violating this precondition without using unsafe.
Affected versions therefore exposed an unsafe allocation precondition through safe Rust code, violating Rust's soundness guarantees.

The upstream repository fixed this in version 0.1.2 by marking alloc as unsafe and documenting its non-zero-layout requirement.

Published
27 Oct 2026
Last modified
24 Nov 2026
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io hugepage-rs >= 0.0.0-0, < 0.1.2 0.1.2

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 27 Oct 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.