Vulnerability RUSTSEC-2026-0598

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
28 days ago
October 27, 2026 at 12:00 PM UTC
`hugepage_rs::alloc` may cause undefined behavior with zero-sized layouts from safe code
>=0.0.0-0 <0.1.2
>=0.0.0-0 <0.1.2

Summary

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

Details

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.

Impacted packages

Timeline

Published
28 days ago
October 27, 2026 at 12:00 PM UTC
Fixed (0.1.2)
27 days ago
October 28, 2026 at 01:53 AM UTC
Last Modified
11 hours ago
November 24, 2026 at 09:30 AM UTC