CVE-2022-49334

mm/huge_memory: Fix xarray node memory leak

State
Published
Severity
5.5 Medium
Published
Feb 26, 2025
Updated
May 11, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 to before c0c84962e297927ba57fd6ddc2bb000c9d149655Affected
  • 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 to before 95c8181b4947e000f3b9b8e5918d899fce77b93dAffected
  • 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 to before 69a37a8ba1b408a1c7616494aa7018e4b3844cbeAffected
LinuxLinux
  • 5.17Affected
  • before 5.17Not affected
  • 5.17.15 through 5.17.*Not affected
  • 5.18.4 through 5.18.*Not affected
  • 5.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.