# CVE-2024-53105: mm: page\_alloc: move mlocked flag clearance into free\_pages\_prepare()

> 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, CNA) `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-401
- **Published:** 2024-12-02T13:44:38.257Z
- **Modified:** 2026-06-17T08:08:17.377Z

## Who should check

- Anyone running Linux \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 2521664c1fc0fcea825ef0b4d8e2dfb622bc0f9a; \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 81ad32b87eb91b627a4b0d8760434e5fac4b993a; \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 7873d11911cd1d21e25c354eb130d8c3b5cb3ca5; \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 66edc3a5894c74f8887c8af23b97593a0dd0df4d
- Anyone running Linux 5.18

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm: page\_alloc: move mlocked flag clearance into free\_pages\_prepare()

Syzbot reported a bad page state problem caused by a page being freed
using free\_page() still having a mlocked flag at free\_pages\_prepare()
stage:

  BUG: Bad page state in process syz.5.504  pfn:61f45
  page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x61f45
  flags: 0xfff00000080204(referenced\|workingset\|mlocked\|node=0\|zone=1\|lastcpupid=0x7ff)
  raw: 00fff00000080204 0000000000000000 dead000000000122 0000000000000000
  raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
  page dumped because: PAGE\_FLAGS\_CHECK\_AT\_FREE flag(s) set
  page\_owner tracks the page as allocated
  page last allocated via order 0, migratetype Unmovable, gfp\_mask 0x400dc0(GFP\_KERNEL\_ACCOUNT\|\_\_GFP\_ZERO), pid 8443, tgid 8442 (syz.5.504), ts 201884660643, free\_ts 201499827394
   set\_page\_owner include/linux/page\_owner.h:32 \[inline\]
   post\_alloc\_hook+0x1f3/0x230 mm/page\_alloc.c:1537
   prep\_new\_page mm/page\_alloc.c:1545 \[inline\]
   get\_page\_from\_freelist+0x303f/0x3190 mm/page\_alloc.c:3457
   \_\_alloc\_pages\_noprof+0x292/0x710 mm/page\_alloc.c:4733
   alloc\_pages\_mpol\_noprof+0x3e8/0x680 mm/mempolicy.c:2265
   kvm\_coalesced\_mmio\_init+0x1f/0xf0 virt/kvm/coalesced\_mmio.c:99
   kvm\_create\_vm virt/kvm/kvm\_main.c:1235 \[inline\]
   kvm\_dev\_ioctl\_create\_vm virt/kvm/kvm\_main.c:5488 \[inline\]
   kvm\_dev\_ioctl+0x12dc/0x2240 virt/kvm/kvm\_main.c:5530
   \_\_do\_compat\_sys\_ioctl fs/ioctl.c:1007 \[inline\]
   \_\_se\_compat\_sys\_ioctl+0x510/0xc90 fs/ioctl.c:950
   do\_syscall\_32\_irqs\_on arch/x86/entry/common.c:165 \[inline\]
   \_\_do\_fast\_syscall\_32+0xb4/0x110 arch/x86/entry/common.c:386
   do\_fast\_syscall\_32+0x34/0x80 arch/x86/entry/common.c:411
   entry\_SYSENTER\_compat\_after\_hwframe+0x84/0x8e
  page last free pid 8399 tgid 8399 stack trace:
   reset\_page\_owner include/linux/page\_owner.h:25 \[inline\]
   free\_pages\_prepare mm/page\_alloc.c:1108 \[inline\]
   free\_unref\_folios+0xf12/0x18d0 mm/page\_alloc.c:2686
   folios\_put\_refs+0x76c/0x860 mm/swap.c:1007
   free\_pages\_and\_swap\_cache+0x5c8/0x690 mm/swap\_state.c:335
   \_\_tlb\_batch\_free\_encoded\_pages mm/mmu\_gather.c:136 \[inline\]
   tlb\_batch\_pages\_flush mm/mmu\_gather.c:149 \[inline\]
   tlb\_flush\_mmu\_free mm/mmu\_gather.c:366 \[inline\]
   tlb\_flush\_mmu+0x3a3/0x680 mm/mmu\_gather.c:373
   tlb\_finish\_mmu+0xd4/0x200 mm/mmu\_gather.c:465
   exit\_mmap+0x496/0xc40 mm/mmap.c:1926
   \_\_mmput+0x115/0x390 kernel/fork.c:1348
   exit\_mm+0x220/0x310 kernel/exit.c:571
   do\_exit+0x9b2/0x28e0 kernel/exit.c:926
   do\_group\_exit+0x207/0x2c0 kernel/exit.c:1088
   \_\_do\_sys\_exit\_group kernel/exit.c:1099 \[inline\]
   \_\_se\_sys\_exit\_group kernel/exit.c:1097 \[inline\]
   \_\_x64\_sys\_exit\_group+0x3f/0x40 kernel/exit.c:1097
   x64\_sys\_call+0x2634/0x2640 arch/x86/include/generated/asm/syscalls\_64.h:232
   do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
   do\_syscall\_64+0xf3/0x230 arch/x86/entry/common.c:83
   entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
  Modules linked in:
  CPU: 0 UID: 0 PID: 8442 Comm: syz.5.504 Not tainted 6.12.0-rc6-syzkaller \#0
  Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
  Call Trace:
   \<TASK\>
   \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
   dump\_stack\_lvl+0x241/0x360 lib/dump\_stack.c:120
   bad\_page+0x176/0x1d0 mm/page\_alloc.c:501
   free\_page\_is\_bad mm/page\_alloc.c:918 \[inline\]
   free\_pages\_prepare mm/page\_alloc.c:1100 \[inline\]
   free\_unref\_page+0xed0/0xf20 mm/page\_alloc.c:2638
   kvm\_destroy\_vm virt/kvm/kvm\_main.c:1327 \[inline\]
   kvm\_put\_kvm+0xc75/0x1350 virt/kvm/kvm\_main.c:1386
   kvm\_vcpu\_release+0x54/0x60 virt/kvm/kvm\_main.c:4143
   \_\_fput+0x23f/0x880 fs/file\_table.c:431
   task\_work\_run+0x24f/0x310 kernel/task\_work.c:239
   exit\_task\_work include/linux/task\_work.h:43 \[inline\]
   do\_exit+0xa2f/0x28e0 kernel/exit.c:939
   do\_group\_exit+0x207/0x2c0 kernel/exit.c:1088
   \_\_do\_sys\_exit\_group kernel/exit.c:1099 \[in
---truncated---

## Affected and fixed versions

- Linux: \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 2521664c1fc0fcea825ef0b4d8e2dfb622bc0f9a; \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 81ad32b87eb91b627a4b0d8760434e5fac4b993a; \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 7873d11911cd1d21e25c354eb130d8c3b5cb3ca5; \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 66edc3a5894c74f8887c8af23b97593a0dd0df4d (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 66edc3a5894c74f8887c8af23b97593a0dd0df4d 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-53105. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53105.md
Affected: Linux >= b109b87050df5438ee745b2bddfa3587970025bb, < 2521664c1fc0fcea825ef0b4d8e2dfb622bc0f9a; >= b109b87050df5438ee745b2bddfa3587970025bb, < 81ad32b87eb91b627a4b0d8760434e5fac4b993a; >= b109b87050df5438ee745b2bddfa3587970025bb, < 7873d11911cd1d21e25c354eb130d8c3b5cb3ca5; >= b109b87050df5438ee745b2…
Fixed in: Linux 2521664c1fc0fcea825ef0b4d8e2dfb622bc0f9a, Linux 81ad32b87eb91b627a4b0d8760434e5fac4b993a, Linux 7873d11911cd1d21e25c354eb130d8c3b5cb3ca5, Linux 66edc3a5894c74f8887c8af23b97593a0dd0df4d

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-53105 being exploited?

There is no confirmed exploitation: CVE-2024-53105 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-53105?

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

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

Linux \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 2521664c1fc0fcea825ef0b4d8e2dfb622bc0f9a; \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 81ad32b87eb91b627a4b0d8760434e5fac4b993a; \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 7873d11911cd1d21e25c354eb130d8c3b5cb3ca5; \>= b109b87050df5438ee745b2bddfa3587970025bb, \< 66edc3a5894c74f8887c8af23b97593a0dd0df4d; Linux 5.18.

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

Yes. Fixed in Linux 2521664c1fc0fcea825ef0b4d8e2dfb622bc0f9a, Linux 81ad32b87eb91b627a4b0d8760434e5fac4b993a, Linux 7873d11911cd1d21e25c354eb130d8c3b5cb3ca5, Linux 66edc3a5894c74f8887c8af23b97593a0dd0df4d. Upgrade Linux to 66edc3a5894c74f8887c8af23b97593a0dd0df4d or later.

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

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/2521664c1fc0fcea825ef0b4d8e2dfb622bc0f9a>
- patch: <https://git.kernel.org/stable/c/81ad32b87eb91b627a4b0d8760434e5fac4b993a>
- patch: <https://git.kernel.org/stable/c/7873d11911cd1d21e25c354eb130d8c3b5cb3ca5>
- patch: <https://git.kernel.org/stable/c/66edc3a5894c74f8887c8af23b97593a0dd0df4d>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/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-53105>

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