{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-53113","id":"CVE-2024-53113","title":"mm: fix NULL pointer dereference in alloc_pages_bulk_noprof","description":"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 ","descriptionLong":"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.","published":"2024-12-02T13:44:45.419Z","updated":"2026-10-28T02:30:55.799906714Z","reserved":"2024-11-19T17:17:24.993Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"387ba26fb1cb9be9e35dc14a6d97188e916eda05","lessThan":"903d896448c2e50e8652aaba529a30d4d1eaa0e5","status":"affected","versionType":"git"},{"version":"387ba26fb1cb9be9e35dc14a6d97188e916eda05","lessThan":"6addb2d9501ec866d7b3a3b4e665307c437e9be2","status":"affected","versionType":"git"},{"version":"387ba26fb1cb9be9e35dc14a6d97188e916eda05","lessThan":"d0f16cec79774c3132df006cf771eddd89d08f58","status":"affected","versionType":"git"},{"version":"387ba26fb1cb9be9e35dc14a6d97188e916eda05","lessThan":"31502374627ba9ec3e710dbd0bb00457cc6d2c19","status":"affected","versionType":"git"},{"version":"387ba26fb1cb9be9e35dc14a6d97188e916eda05","lessThan":"8ce41b0f9d77cca074df25afd39b86e2ee3aa68e","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","lessThan":"5.13","status":"unaffected","versionType":"semver"},{"version":"5.15.174","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.119","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.63","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.11.10","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/903d896448c2e50e8652aaba529a30d4d1eaa0e5","tags":["web"]},{"url":"https://git.kernel.org/stable/c/6addb2d9501ec866d7b3a3b4e665307c437e9be2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d0f16cec79774c3132df006cf771eddd89d08f58","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/31502374627ba9ec3e710dbd0bb00457cc6d2c19","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8ce41b0f9d77cca074df25afd39b86e2ee3aa68e","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53113.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53113","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00251,"epssPercentile":0.16682,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-53113","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53113","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-53113","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-53113","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}