# CVE-2022-49334: mm/huge_memory: Fix xarray node memory leak

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-02)
- Published: 2025-02-26T02:10:52.678Z
- Modified: 2026-06-17T05:17:44.957Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 before c0c84962e297927ba57fd6ddc2bb000c9d149655; from 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 before 95c8181b4947e000f3b9b8e5918d899fce77b93d; from 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 before 69a37a8ba1b408a1c7616494aa7018e4b3844cbe; 5.17 (not affected: before 5.17; from 5.17.15 up to 5.17.*; from 5.18.4 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.17 before 5.17.15; from 5.18 before 5.18.4; 5.19

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c0c84962e297927ba57fd6ddc2bb000c9d149655> (patch)
- <https://git.kernel.org/stable/c/95c8181b4947e000f3b9b8e5918d899fce77b93d> (patch)
- <https://git.kernel.org/stable/c/69a37a8ba1b408a1c7616494aa7018e4b3844cbe> (patch)

## Sources

- CVE List: [CVE-2022-49334](https://www.cve.org/CVERecord?id=CVE-2022-49334), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49334](https://nvd.nist.gov/vuln/detail/CVE-2022-49334), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49334 · Whole record: https://cve.day/CVE-2022-49334.json · Rebuilt by cve.day 2026-11-25T22:58:20.419Z
