Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-53105

MEDIUM 5.5EPSS 15%

mm: page_alloc: move mlocked flag clearance into free_pages_prepare()

Mitigation

  • Upgrade Linux to 66edc3a5894c74f8887c8af23b97593a0dd0df4d or later.

Who should check

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

Vulnerability facts

Affected
Linux >= b109b87050df5438ee745b2bddfa3587970025bb, < 2521664c1fc0fcea825ef0b4d8e2dfb622bc0f9a; >= b109b87050df5438ee745b2bddfa3587970025bb, < 81ad32b87eb91b627a4b0d8760434e5fac4b993a; >= b109b87050df5438ee745b2bddfa3587970025bb, < 7873d11911cd1d21e25c354eb130d8c3b5cb3ca5; >= b109b87050df5438ee745b2bddfa3587970025bb, < 66edc3a5894c74f8887c8af23b97593a0dd0df4d; Linux 5.18
Fixed in
Linux 2521664c1fc0fcea825ef0b4d8e2dfb622bc0f9a, Linux 81ad32b87eb91b627a4b0d8760434e5fac4b993a, Linux 7873d11911cd1d21e25c354eb130d8c3b5cb3ca5, Linux 66edc3a5894c74f8887c8af23b97593a0dd0df4d
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
CWE
CWE-401
Published
Modified

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

Package / productAffectedFixedSource
Linux>= b109b87050df5438ee745b2bddfa3587970025bb, < 2521664c1fc0fcea825ef0b4d8e2dfb622bc0f9a; >= b109b87050df5438ee745b2bddfa3587970025bb, < 81ad32b87eb91b627a4b0d8760434e5fac4b993a; >= b109b87050df5438ee745b2bddfa3587970025bb, < 7873d11911cd1d21e25c354eb130d8c3b5cb3ca5; >= b109b87050df5438ee745b2bddfa3587970025bb, < 66edc3a5894c74f8887c8af23b97593a0dd0df4d—cvelist
Linux5.18—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors