Linux Kernel Huge Memory Management Xarray Node Memory Leak Vulnerability

Vulnerability

A memory leak vulnerability has been identified in the Linux kernel's huge memory management system, specifically within the xarray implementation. When the function xas_split_alloc() fails to allocate the required nodes for splitting an xarray entry, it erroneously sets the xa_state to -ENOMEM. This state is then interpreted by xas_nomem() as a request to allocate more memory, rather than to free unnecessary memory, which was the intended action. This creates confusion, as xas_nomem() is not meant to be used for memory deallocation in this scenario. To resolve this, the function xas_destroy() should be called instead.

Impact

Exploitation of this vulnerability leads to a memory leak, where allocated memory is not properly freed, potentially causing increased memory usage and degradation of system performance over time.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.3
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.