GHSA-g23h-7vf9-xc25
medium
Mimalloc Can Allocate Memory with Bad Alignment
- Severity
- medium CVSS:4.0 by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2022-0094
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mimalloc (crates.io) | before 0.1.39, from 0.0.0-0 before 0.1.39 | GitHub Advisory Database, RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-g23h-7vf9-xc25 changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2022-0094 changed 2025-10-28 | CC0-1.0 |