GHSA-g23h-7vf9-xc25
MEDIUMMimalloc Can Allocate Memory with Bad Alignment
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.
- Published
- 23 Nov 2022
- Last modified
- 10 Sep 2026
- Also known as
- RUSTSEC-2022-0094
- Sources
- OSVJSONOSV RUSTSEC-2022-0094JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | mimalloc | < 0.1.39 | 0.1.39 |
| OSV | crates.io | mimalloc | >= 0.0.0-0, < 0.1.39 | 0.1.39 |
References
- https://github.com/purpleprotocol/mimalloc_rust/issues/87 · WEB, REPORT
- https://github.com/purpleprotocol/mimalloc_rust · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2022-0094.html · WEB, ADVISORY
- https://crates.io/crates/mimalloc · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Nov 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Nov 2024)