CVE-2024-53113
mm: fix NULL pointer dereference in alloc_pages_bulk_noprof
Reported by linux · Published December 2, 2024
In the Linux kernel, the following vulnerability has been resolved: mm: fix NULL pointer dereference in alloc_pages_bulk_noprof We triggered a NULL pointer dereference for ac.preferred_zoneref->zone in alloc_pages_bulk_noprof() when the task is migrated between cpusets. When cpuset is enabled, in prepare_alloc_pages(), ac->nodemask may be ¤t->mems_allowed. when first_zones_zonelist() is called to find preferred_zoneref, the ac->nodemask may be modified concurrently if the task is migrated between different cpusets. Assuming we have 2 NUMA Node, when traversing Node1 in ac->zonelist, the nodemask is 2, and when traversing Node2 in ac->zonelist, the nodemask is 1. As a result, the ac->preferred_zoneref points to NULL zone. In alloc_pages_bulk_noprof(), for_each_zone_zonelist_nodemask() finds a allowable zone and calls zonelist_node_idx(ac.preferred_zoneref), leading to NULL pointer dereference. __alloc_pages_noprof() fixes this issue by checking NULL pointer in commit ea57485af8f4 ("mm, page_alloc: fix check for NULL preferred_zone") and commit df76cee6bbeb ("mm, page_alloc: remove redundant checks from alloc fastpath"). To fix it, check NULL pointer for preferred_zoneref->zone.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf-static | Amazon Linux | 6.1.119-129.201.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.119-129.201.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.119-129.201.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.119-129.201.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.119-129.201.amzn2023 |
| linux_kernel | linux | 6.11.10, 6.6.63, 6.1.119 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 387ba26fb1cb9be9e35dc14a6d97188e916eda05, 387ba26fb1cb9be9e35dc14a6d97188e916eda05, 387ba26fb1cb9be9e35dc14a6d97188e916eda05 |
| Linux | Linux | 5.13, 0, 5.15.174 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| linux | linux_kernel | 5.13, 5.13, 5.13 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-livepatch-6.1.119-129.201 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | bpftool | 0 |
| Linux | Linux | 387ba26fb1cb9be9e35dc14a6d97188e916eda05, 6.11.10, 6.12 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
Timeline
- Dec 2, 2024 CVE Published
- Dec 3, 2024 EPSS Score (30 in total, the first dated here)
- Feb 7, 2025 Coalition ESS Score (5 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jan 1, 2026 Security Advisory (170 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (160 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-53113
vulnetix vdb fixes CVE-2024-53113
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-53113/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart