VDB
Sign up
—

RUSTSEC-2022-0094

Mimalloc Can Allocate Memory with Bad Alignment

Details

This crate depended on a promise regarding alignments made by the author of the mimalloc allocator to avoid using aligned allocation functions where possible for performance reasons. Since then, the mimalloc allocator's logic changed, making it break this promise. This caused this crate to return memory with an incorrect alignment for some allocations, particularly those with large alignments. The flaw was fixed by always using the aligned allocation functions.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/mimalloc
Introduced in: 0.0.0-0Fixed in: 0.1.39

Upgrade mimalloc to 0.1.39 or newer (ecosystem crates.io).

References