HIGH
mm PagePrivate UAF
CVE-2026-43303
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.6MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: mm/page_alloc: clear page->private in free_pages_prepare() Several subsystems (slub, shmem, ttm, etc.) use page->private but don't clear it before freeing pages. When these pages are later allocated as high-order pages and split via split_page(), tail pages retain stale page->private values. This causes a use-after-free in the swap subsystem. The swap code uses page->private to track swap count continuations, assuming freshly allocated pages have page->private == 0. When stale values are present, swap_count_continued() incorrectly assumes the continuation list is valid and iterates over uninitialized page->lru containing LIST_POISON values, causing a crash: KASAN: maybe wild-memory-access in range [0xdead000000000100-0xdead000000000107] RIP: 0010:__do_sys_swapoff+0x1151/0x1860 Fix this by clearing page->private in free_pages_prepare(), ensuring all freed pages have clean state regardless of previous use.
02KernelScan AI Analysis
Risk summary
Local users can trigger a kernel crash or potentially leak information or corrupt memory via swap operations when pages with stale private data are reused. This affects systems with swap enabled and can lead to denial of service through kernel panic. The underlying use-after-free primitive may also enable limited information disclosure or memory corruption.
Vulnerability analysis
The root cause is that multiple subsystems (slub, shmem, ttm) use page->private but don't clear it before freeing pages. When these pages are later allocated as high-order pages and split via split_page(), tail pages retain stale page->private values. The swap subsystem assumes freshly allocated pages have page->private == 0 and uses this field to track swap count continuations. When stale values are present, swap_count_continued() incorrectly treats the stale data as a valid continuation list and iterates over uninitialized page->lru containing LIST_POISON values, causing a use-after-free crash. Because this is a heap use-after-free involving a dereferenced stale pointer, the primitive can also enable limited information leak (C:Low) and memory corruption (I:Low) in addition to the denial of service. The fix clears page->private in free_pages_prepare() to ensure all freed pages have clean state. This is a local vulnerability requiring low privileges to trigger swap activity, with high availability impact due to kernel crashes.
03Fix Versions
| Branch | Fixed in | Patch commit |
|---|---|---|
| 6.12 | 6.12.93 | f9719e32a67b |
| 6.18 | 6.18.16 | 23b82b7a2618 |
| 6.19 | 6.19.6 | d757c793853e |
| mainline | 7.0 | ac1ea219590c |