Bug 2347757 (CVE-2022-49334) - CVE-2022-49334 kernel: mm/huge_memory: Fix xarray node memory leak
Summary: CVE-2022-49334 kernel: mm/huge_memory: Fix xarray node memory leak
Keywords:
Status: NEW
Alias: CVE-2022-49334
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:05 UTC by OSIDB Bzimport
Modified: 2025-03-24 16:16 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:05:40 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 13:40:12 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022639-CVE-2022-49334-7f6b@gregkh/T

Comment 4 Avinash Hanwate 2025-02-26 17:48:35 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022639-CVE-2022-49334-7f6b@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.