Skip to content
CVE PROGRAM SOURCE RECORD5.5 Medium

CVE-2022-49334

mm/huge_memory: Fix xarray node memory leak

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 to < c0c84962e297927ba57fd6ddc2bb000c9d149655affected
  • 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 to < 95c8181b4947e000f3b9b8e5918d899fce77b93daffected
  • 6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3 to < 69a37a8ba1b408a1c7616494aa7018e4b3844cbeaffected

Linux Linux

Default version status: affected

  • 5.17affected
  • 0 to < 5.17unaffected
  • 5.17.15 to ≤ 5.17.*unaffected
  • 5.18.4 to ≤ 5.18.*unaffected
  • 5.19 to ≤ *unaffected

References