VDB

CVE-2024-53113

CVE-2024-53113 PUBLISHED

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 &current->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.

PackageEcosystemFixed in
kernel-libbpf-staticAmazon Linux6.1.119-129.201.amzn2023
kernel-headersAmazon Linux6.1.119-129.201.amzn2023
kernel-modules-extraAmazon Linux6.1.119-129.201.amzn2023
kernel-tools-develAmazon Linux6.1.119-129.201.amzn2023
kernel-libbpfAmazon Linux6.1.119-129.201.amzn2023
linux_kernellinux6.11.10, 6.6.63, 6.1.119

Affected products

VendorProductVersions
LinuxLinux387ba26fb1cb9be9e35dc14a6d97188e916eda05, 387ba26fb1cb9be9e35dc14a6d97188e916eda05, 387ba26fb1cb9be9e35dc14a6d97188e916eda05
LinuxLinux5.13, 0, 5.15.174
amazon:2023kernel-libbpf-static0
amazon:2023kernel-headers0
amazon:2023kernel-modules-extra0
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf0
linuxlinux_kernel5.13, 5.13, 5.13
amazon:2023python3-perf0
amazon:2023kernel0
amazon:2023kernel-livepatch-6.1.119-129.2010
amazon:2023kernel-tools0
amazon:2023bpftool0
LinuxLinux387ba26fb1cb9be9e35dc14a6d97188e916eda05, 6.11.10, 6.12
amazon:2023kernel-devel0
amazon:2023perf0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-libbpf-devel0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›