# CVE-2024-53113: mm: fix NULL pointer dereference in alloc\_pages\_bulk\_noprof

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-12-02T13:44:45.419Z
- **Modified:** 2026-06-17T08:08:20.057Z

## Who should check

- Anyone running Linux \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 903d896448c2e50e8652aaba529a30d4d1eaa0e5; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 6addb2d9501ec866d7b3a3b4e665307c437e9be2; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< d0f16cec79774c3132df006cf771eddd89d08f58; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 31502374627ba9ec3e710dbd0bb00457cc6d2c19; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 8ce41b0f9d77cca074df25afd39b86e2ee3aa68e
- Anyone running Linux 5.13

## Description

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.

## Affected and fixed versions

- Linux: \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 903d896448c2e50e8652aaba529a30d4d1eaa0e5; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 6addb2d9501ec866d7b3a3b4e665307c437e9be2; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< d0f16cec79774c3132df006cf771eddd89d08f58; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 31502374627ba9ec3e710dbd0bb00457cc6d2c19; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 8ce41b0f9d77cca074df25afd39b86e2ee3aa68e (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 8ce41b0f9d77cca074df25afd39b86e2ee3aa68e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-53113. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53113.md
Affected: Linux >= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, < 903d896448c2e50e8652aaba529a30d4d1eaa0e5; >= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, < 6addb2d9501ec866d7b3a3b4e665307c437e9be2; >= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, < d0f16cec79774c3132df006cf771eddd89d08f58; >= 387ba26fb1cb9be9e35dc14…
Fixed in: Linux 903d896448c2e50e8652aaba529a30d4d1eaa0e5, Linux 6addb2d9501ec866d7b3a3b4e665307c437e9be2, Linux 31502374627ba9ec3e710dbd0bb00457cc6d2c19, Linux 8ce41b0f9d77cca074df25afd39b86e2ee3aa68e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-53113 being exploited?

There is no confirmed exploitation: CVE-2024-53113 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-53113?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-53113?

Linux \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 903d896448c2e50e8652aaba529a30d4d1eaa0e5; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 6addb2d9501ec866d7b3a3b4e665307c437e9be2; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< d0f16cec79774c3132df006cf771eddd89d08f58; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 31502374627ba9ec3e710dbd0bb00457cc6d2c19; \>= 387ba26fb1cb9be9e35dc14a6d97188e916eda05, \< 8ce41b0f9d77cca074df25afd39b86e2ee3aa68e; Linux 5.13.

### Is there a fix for CVE-2024-53113?

Yes. Fixed in Linux 903d896448c2e50e8652aaba529a30d4d1eaa0e5, Linux 6addb2d9501ec866d7b3a3b4e665307c437e9be2, Linux 31502374627ba9ec3e710dbd0bb00457cc6d2c19, Linux 8ce41b0f9d77cca074df25afd39b86e2ee3aa68e. Upgrade Linux to 8ce41b0f9d77cca074df25afd39b86e2ee3aa68e or later.

### How do I check if I'm affected by CVE-2024-53113?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6addb2d9501ec866d7b3a3b4e665307c437e9be2>
- patch: <https://git.kernel.org/stable/c/d0f16cec79774c3132df006cf771eddd89d08f58>
- patch: <https://git.kernel.org/stable/c/31502374627ba9ec3e710dbd0bb00457cc6d2c19>
- patch: <https://git.kernel.org/stable/c/8ce41b0f9d77cca074df25afd39b86e2ee3aa68e>
- other: <https://git.kernel.org/stable/c/903d896448c2e50e8652aaba529a30d4d1eaa0e5>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-53113>

HTML: <https://flawdb.com/CVE-2024-53113> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-53113>
