Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1nMjNoLTd2ZjkteGMyNc4ABBP9

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.

Permalink: https://github.com/advisories/GHSA-g23h-7vf9-xc25
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1nMjNoLTd2ZjkteGMyNc4ABBP9
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 8 days ago
Updated: 8 days ago


Identifiers: GHSA-g23h-7vf9-xc25
References: Repository: https://github.com/purpleprotocol/mimalloc_rust
Blast Radius: 0.0

Affected Packages

cargo:mimalloc
Dependent packages: 195
Dependent repositories: 2,085
Downloads: 7,601,774 total
Affected Version Ranges: < 0.1.39
Fixed in: 0.1.39
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.1.16, 0.1.17, 0.1.18, 0.1.19, 0.1.20, 0.1.21, 0.1.22, 0.1.23, 0.1.24, 0.1.25, 0.1.26, 0.1.27, 0.1.28, 0.1.29, 0.1.30, 0.1.31, 0.1.32, 0.1.33, 0.1.34, 0.1.35, 0.1.36, 0.1.37, 0.1.38
All unaffected versions: 0.1.39, 0.1.40, 0.1.41, 0.1.42, 0.1.43