What’s Vulnerable › Vulnerabilities
CVE-2022-49334: mm/huge_memory: Fix xarray node memory leak
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
- Weakness: CWE-401
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.
Affected products
- Linux kernel: from 5.17 before 5.17.15; from 5.18 before 5.18.4; 5.19-rc1 — fixed in 5.17.15, 5.18.4
How to fix
Upgrade to a fixed version: Linux kernel 5.17.15, 5.18.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/69a37a8ba1b408a1c7616494aa7018e4b3844cbe
- https://git.kernel.org/stable/c/95c8181b4947e000f3b9b8e5918d899fce77b93d
- https://git.kernel.org/stable/c/c0c84962e297927ba57fd6ddc2bb000c9d149655
Get alerted when CVE-2022-49334 or the next vulnerability affects your stack