{"id":"RUSTSEC-2022-0094","summary":"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.\nSince then, the mimalloc allocator's logic changed, making it break this promise.\nThis caused this crate to return memory with an incorrect alignment for some allocations, particularly those with large alignments.\nThe flaw was fixed by always using the aligned allocation functions.","aliases":["GHSA-g23h-7vf9-xc25"],"modified":"2025-10-28T06:29:24.589313Z","published":"2022-11-23T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/mimalloc"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2022-0094.html"},{"type":"REPORT","url":"https://github.com/purpleprotocol/mimalloc_rust/issues/87"}],"affected":[{"package":{"name":"mimalloc","ecosystem":"crates.io","purl":"pkg:cargo/mimalloc"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.1.39"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"os":[],"functions":[]}},"database_specific":{"cvss":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0094.json","informational":"unsound","categories":[]}}],"schema_version":"1.7.3"}