Security mailing lists by PureSourceCode

RUSTSEC-2022-0094

MEDIUM

Mimalloc 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
GHSA-g23h-7vf9-xc25
Sources
OSV GHSA-g23h-7vf9-xc25JSONOSVJSON

Scores

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.