Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93216 Overview
CVE-2026-93216 is a time-of-check time-of-use (TOCTOU) race condition in the Linux kernel's memory management subsystem. The flaw resides in print_page_owner_memcg() within mm/page_owner. The function reads page->memcg_data once via READ_ONCE(), then performs additional lockless reads of the same field in page_memcg_check() and PageMemcgKmem(). If the page is concurrently freed and reallocated as a transparent huge page (THP) tail page or slab page between those reads, VM_BUG_ON assertions trigger on CONFIG_DEBUG_VM=y builds and crash the kernel.
Critical Impact
Concurrent page reallocation during page_owner debugging output can trigger kernel BUG assertions, resulting in a kernel panic and denial of service on debug-enabled kernels.
Affected Products
- Linux kernel versions containing mm/page_owner with the unfixed print_page_owner_memcg() path
- Builds compiled with CONFIG_DEBUG_VM=y and CONFIG_PAGE_OWNER=y
- Distributions shipping affected stable kernel branches prior to the referenced fix commits
Discovery Timeline
- 2026-09-24 - CVE-2026-93216 published to the National Vulnerability Database
- 2026-09-24 - Last updated in NVD database
Technical Details for CVE-2026-93216
Vulnerability Analysis
The print_page_owner_memcg() function emits memory control group (memcg) ownership information for debugging. It initially snapshots page->memcg_data using READ_ONCE() to defend against tail pages and NULL values. The defect is that subsequent code paths re-read the live page->memcg_data field rather than reusing the snapshot.
Two later call sites perform lockless reads: page_memcg_check(page) and PageMemcgKmem(page), the latter invoking folio_memcg_kmem(). folio_memcg_kmem() contains VM_BUG_ON assertions that reject tail pages and the MEMCG_DATA_OBJEXTS bit pattern. When the underlying page is freed and reallocated as a THP tail or slab page between the initial snapshot and these later reads, the assertions fire and halt the kernel.
Root Cause
The root cause is a classic TOCTOU pattern [CWE-367]. The function validates state once, then re-queries the same mutable field without synchronization. Pages tracked by page_owner can transition lifecycle states concurrently because no reference count or lock is held across the print operation.
Attack Vector
Triggering the condition requires concurrent memory allocation activity that reclaims and recycles pages during a page_owner read, typically through /sys/kernel/debug/page_owner. The impact is limited to debug kernels with CONFIG_DEBUG_VM=y. Local users with access to the page_owner debugfs interface could induce kernel panics on affected systems, but production kernels without debug assertions are not crashable through this path.
No verified public exploit code is available. See the upstream patch commits for the exact remediation: Kernel Git Commit 46761406 and Kernel Git Commit 90f095b8.
Detection Methods for CVE-2026-93216
Indicators of Compromise
- Kernel panic messages referencing VM_BUG_ON in folio_memcg_kmem() or page_memcg_check()
- Crash stack traces containing print_page_owner_memcg frames
- Unexpected reboots on debug-build kernels during access to /sys/kernel/debug/page_owner
Detection Strategies
- Audit running kernel versions against the fix commits 46761406 and 90f095b8 to confirm patch presence
- Review kernel build configuration for CONFIG_DEBUG_VM=y combined with CONFIG_PAGE_OWNER=y to identify at-risk hosts
- Correlate /sys/kernel/debug/page_owner access with subsequent kernel crash events in system logs
Monitoring Recommendations
- Forward /var/log/kern.log, dmesg, and kdump artifacts to a centralized logging platform for crash analysis
- Alert on VM_BUG_ON and kernel BUG at mm/ entries in kernel ring buffer telemetry
- Monitor access to debugfs paths under /sys/kernel/debug/page_owner by non-root processes
How to Mitigate CVE-2026-93216
Immediate Actions Required
- Apply the upstream stable kernel updates containing commits 46761406e143 and 90f095b816e2
- Restrict access to /sys/kernel/debug to root only by ensuring debugfs is mounted with appropriate permissions
- On production systems, disable CONFIG_DEBUG_VM unless actively required for kernel debugging
Patch Information
The fix reuses the initial memcg_data snapshot throughout print_page_owner_memcg() instead of re-reading page->memcg_data in subsequent calls. This eliminates the race window that allowed tail-page or slab-page reallocation to trigger VM_BUG_ON. Patch details are available at Kernel Git Commit 46761406 and Kernel Git Commit 90f095b8.
Workarounds
- Unmount or restrict debugfs: mount -o remount,mode=0700 /sys/kernel/debug
- Rebuild kernels without CONFIG_PAGE_OWNER where page_owner diagnostics are not required
- Avoid reading /sys/kernel/debug/page_owner on debug kernels under heavy memory allocation workloads
# Configuration example
# Restrict debugfs access to root
mount -o remount,mode=0700 /sys/kernel/debug
# Verify kernel configuration
zcat /proc/config.gz | grep -E 'CONFIG_(DEBUG_VM|PAGE_OWNER)'
# Confirm patch commit is present in running kernel source
git log --oneline | grep -E '46761406|90f095b8'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

