CVE-2022-49334

published 26 Feb 2025 · updated 11 May 2026

mm/huge_memory: Fix xarray node memory leak

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 69a37a8ba1b408a1c7616494aa7018e4b3844cbe, Kernel 95c8181b4947e000f3b9b8e5918d899fce77b93d and Kernel c0c84962e297927ba57fd6ddc2bb000c9d149655.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.17, >=6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 <69a37a8ba1b408a1c7616494aa7018e4b3844cbe, >=6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 <95c8181b4947e000f3b9b8e5918d899fce77b93d, >=6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 <c0c84962e297927ba57fd6ddc2bb000c9d14965569a37a8ba1b408a1c7616494aa7018e4b3844cbe, 95c8181b4947e000f3b9b8e5918d899fce77b93d, c0c84962e297927ba57fd6ddc2bb000c9d149655

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49334 severity on Zeptric[![CVE-2022-49334](https://zeptric.io/badge/cve/CVE-2022-49334.svg)](https://zeptric.io/cve/CVE-2022-49334)