{"id":"CVE-2024-53113","aliases":["CVE-2024-53113"],"related":[],"kind":"vulnerability","state":"published","title":"mm: fix NULL pointer dereference in alloc_pages_bulk_noprof","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: fix NULL pointer dereference in alloc_pages_bulk_noprof\n\nWe triggered a NULL pointer dereference for ac.preferred_zoneref->zone in\nalloc_pages_bulk_noprof() when the task is migrated between cpusets.\n\nWhen cpuset is enabled, in prepare_alloc_pages(), ac->nodemask may be\n&current->mems_allowed.  when first_zones_zonelist() is called to find\npreferred_zoneref, the ac->nodemask may be modified concurrently if the\ntask is migrated between different cpusets.  Assuming we have 2 NUMA Node,\nwhen traversing Node1 in ac->zonelist, the nodemask is 2, and when\ntraversing Node2 in ac->zonelist, the nodemask is 1.  As a result, the\nac->preferred_zoneref points to NULL zone.\n\nIn alloc_pages_bulk_noprof(), for_each_zone_zonelist_nodemask() finds a\nallowable zone and calls zonelist_node_idx(ac.preferred_zoneref), leading\nto NULL pointer dereference.\n\n__alloc_pages_noprof() fixes this issue by checking NULL pointer in commit\nea57485af8f4 (\"mm, page_alloc: fix check for NULL preferred_zone\") and\ncommit df76cee6bbeb (\"mm, page_alloc: remove redundant checks from alloc\nfastpath\").\n\nTo fix it, check NULL pointer for preferred_zoneref->zone.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: fix NULL pointer dereference in alloc_pages_bulk_noprof\n\nWe triggered a NULL pointer dereference for ac.preferred_zoneref->zone in\nalloc_pages_bulk_noprof() when the task is migrated between cpusets.\n\nWhen cpuset is enabled, in prepare_alloc_pages(), ac->nodemask may be\n&current->mems_allowed.  when first_zones_zonelist() is called to find\npreferred_zoneref, the ac->nodemask may be modified concurrently if the\ntask is migrated between different cpusets.  Assuming we have 2 NUMA Node,\nwhen traversing Node1 in ac->zonelist, the nodemask is 2, and when\ntraversing Node2 in ac->zonelist, the nodemask is 1.  As a result, the\nac->preferred_zoneref points to NULL zone.\n\nIn alloc_pages_bulk_noprof(), for_each_zone_zonelist_nodemask() finds a\nallowable zone and calls zonelist_node_idx(ac.preferred_zoneref), leading\nto NULL pointer dereference.\n\n__alloc_pages_noprof() fixes this issue by checking NULL pointer in commit\nea57485af8f4 (\"mm, page_alloc: fix check for NULL preferred_zone\") and\ncommit df76cee6bbeb (\"mm, page_alloc: remove redundant checks from alloc\nfastpath\").\n\nTo fix it, check NULL pointer for preferred_zoneref->zone.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm: corregir la desreferencia de puntero NULL en alloc_pages_bulk_noprof Activamos una desreferencia de puntero NULL para ac.preferred_zoneref-&gt;zone en alloc_pages_bulk_noprof() cuando la tarea se migra entre conjuntos de CPU. Cuando se habilita el conjunto de CPU, en prepare_alloc_pages(), ac-&gt;nodemask puede ser &amp;current-&gt;mems_allowed. Cuando se llama a first_zones_zonelist() para encontrar preference_zoneref, ac-&gt;nodemask puede modificarse simultáneamente si la tarea se migra entre diferentes conjuntos de CPU. Suponiendo que tenemos 2 nodos NUMA, al recorrer el nodo 1 en ac-&gt;zonelist, la máscara de nodo es 2, y al recorrer el nodo 2 en ac-&gt;zonelist, la máscara de nodo es 1. Como resultado, ac-&gt;preferred_zoneref apunta a la zona NULL. En alloc_pages_bulk_noprof(), for_each_zone_zonelist_nodemask() encuentra una zona permitida y llama a zonelist_node_idx(ac.preferred_zoneref), lo que genera una desreferencia del puntero NULL. __alloc_pages_noprof() corrige este problema al verificar el puntero NULL en el commit ea57485af8f4 (\"mm, page_alloc: corregir la verificación para la zona preferida NULL\") y el commit df76cee6bbeb (\"mm, page_alloc: eliminar las verificaciones redundantes de la ruta rápida de asignación\"). Para solucionarlo, verifique el puntero NULL para la zona preferida-&gt;zone.","source":"nvd"}],"published":"2024-12-02T13:44:45.419Z","modified":"2026-06-17T08:08:20.057Z","severity":{"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"},"severities":[{"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-476"],"affected":[{"ranges":[{"type":"git","introduced":"387ba26fb1cb9be9e35dc14a6d97188e916eda05","fixed":"903d896448c2e50e8652aaba529a30d4d1eaa0e5","status":"affected"},{"type":"git","introduced":"387ba26fb1cb9be9e35dc14a6d97188e916eda05","fixed":"6addb2d9501ec866d7b3a3b4e665307c437e9be2","status":"affected"},{"type":"git","introduced":"387ba26fb1cb9be9e35dc14a6d97188e916eda05","fixed":"d0f16cec79774c3132df006cf771eddd89d08f58","status":"affected"},{"type":"git","introduced":"387ba26fb1cb9be9e35dc14a6d97188e916eda05","fixed":"31502374627ba9ec3e710dbd0bb00457cc6d2c19","status":"affected"},{"type":"git","introduced":"387ba26fb1cb9be9e35dc14a6d97188e916eda05","fixed":"8ce41b0f9d77cca074df25afd39b86e2ee3aa68e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","status":"unaffected"},{"type":"semver","introduced":"5.15.174","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.119","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.63","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.10","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","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.13","fixed":"6.1.119"},{"status":"affected","introduced":"6.2","fixed":"6.6.63"},{"status":"affected","introduced":"6.7","fixed":"6.11.10"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/903d896448c2e50e8652aaba529a30d4d1eaa0e5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6addb2d9501ec866d7b3a3b4e665307c437e9be2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d0f16cec79774c3132df006cf771eddd89d08f58","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/31502374627ba9ec3e710dbd0bb00457cc6d2c19","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ce41b0f9d77cca074df25afd39b86e2ee3aa68e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53113","url":"https://www.cve.org/CVERecord?id=CVE-2024-53113","licence":"CVE Terms of Use","modified":"2026-05-11T20:51:06.019Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53113","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53113","licence":"Public domain","modified":"2026-06-17T08:08:20.057Z"}],"updatedAt":"2026-11-25T22:58:49.617Z","epss":{"score":0.00301,"percentile":0.15209,"date":"2026-11-30T12:00:22.000Z"}}