CVE-2022-49334 Details
Description
In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: Fix xarray node memory leak If xas_split_alloc() fails to allocate the necessary nodes to complete the xarray entry split, it sets the xa_state to -ENOMEM, which xas_nomem() then interprets as "Please allocate more memory", not as "Please free any unnecessary memory" (which was the intended outcome). It's confusing to use xas_nomem() to free memory in this context, so call xas_destroy() instead.
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/69a37a8ba1b408a1c7616494aa7018e4b3844cbe | kernel.org | Patch |
| https://git.kernel.org/stable/c/95c8181b4947e000f3b9b8e5918d899fce77b93d | kernel.org | Patch |
| https://git.kernel.org/stable/c/c0c84962e297927ba57fd6ddc2bb000c9d149655 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
| CWE-401 | Missing Release of Memory after Effective Lifetime | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.17, < 5.17.15 >= 5.18, < 5.18.4 5.19 rc1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Mar 13, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |