{"id":"CVE-2022-49334","aliases":["CVE-2022-49334"],"related":[],"kind":"vulnerability","state":"published","title":"mm/huge_memory: Fix xarray node memory leak","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: Fix xarray node memory leak\n\nIf xas_split_alloc() fails to allocate the necessary nodes to complete the\nxarray entry split, it sets the xa_state to -ENOMEM, which xas_nomem()\nthen interprets as \"Please allocate more memory\", not as \"Please free\nany unnecessary memory\" (which was the intended outcome).  It's confusing\nto use xas_nomem() to free memory in this context, so call xas_destroy()\ninstead.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: Fix xarray node memory leak\n\nIf xas_split_alloc() fails to allocate the necessary nodes to complete the\nxarray entry split, it sets the xa_state to -ENOMEM, which xas_nomem()\nthen interprets as \"Please allocate more memory\", not as \"Please free\nany unnecessary memory\" (which was the intended outcome).  It's confusing\nto use xas_nomem() to free memory in this context, so call xas_destroy()\ninstead.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm/huge_memory: Se soluciona la pérdida de memoria del nodo xarray Si xas_split_alloc() no puede asignar los nodos necesarios para completar la división de la entrada xarray, establece xa_state en -ENOMEM, que xas_nomem() interpreta como \"Asigne más memoria\", no como \"Libere cualquier memoria innecesaria\" (que era el resultado previsto). Es confuso usar xas_nomem() para liberar memoria en este contexto, así que llame a xas_destroy() en su lugar.","source":"nvd"}],"published":"2025-02-26T02:10:52.678Z","modified":"2026-06-17T05:17:44.957Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3","fixed":"c0c84962e297927ba57fd6ddc2bb000c9d149655","status":"affected"},{"type":"git","introduced":"6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3","fixed":"95c8181b4947e000f3b9b8e5918d899fce77b93d","status":"affected"},{"type":"git","introduced":"6b24ca4a1a8d4ee3221d6d44ddbb99f542e4bda3","fixed":"69a37a8ba1b408a1c7616494aa7018e4b3844cbe","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.17","status":"unaffected"},{"type":"semver","introduced":"5.17.15","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.4","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.17","fixed":"5.17.15"},{"status":"affected","introduced":"5.18","fixed":"5.18.4"},{"status":"affected","version":"5.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c0c84962e297927ba57fd6ddc2bb000c9d149655","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/95c8181b4947e000f3b9b8e5918d899fce77b93d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/69a37a8ba1b408a1c7616494aa7018e4b3844cbe","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:43:11.577Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49334","url":"https://www.cve.org/CVERecord?id=CVE-2022-49334","licence":"CVE Terms of Use","modified":"2026-05-11T18:57:41.304Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49334","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49334","licence":"Public domain","modified":"2026-06-17T05:17:44.957Z"}],"updatedAt":"2026-11-25T22:58:20.419Z","epss":{"score":0.00258,"percentile":0.18672,"date":"2026-12-02T12:00:21.000Z"}}