Skip to content

GHSA-g23h-7vf9-xc25 Mimalloc Can Allocate Memory with Bad Alignment

MediumCVSS 5.5
Published
Updated
Exploit status
No public exploit known

Description

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io mimalloc(crates.io) < 0.1.39; >= 0.0.0-0, < 0.1.39 0.1.39 Fixed

Affected products

ProductAffected versionsFixed in
crates.io mimalloc(crates.io) < 0.1.39 0.1.39
crates.io mimalloc(crates.io) >= 0.0.0-0, < 0.1.39 0.1.39

References