Exclusive: Cache-Based Side-Channel Cracks Windows 11 Kernel Randomization
A newly unveiled technique has exposed a critical vulnerability in Windows 11’s memory defense strategy, allowing adversaries to accurately pinpoint the location of core kernel components—without needing privileged access.
At the heart of Windows 11’s memory security is Kernel Address Space Layout Randomization (KASLR), a defense mechanism that relocates the kernel’s base address each time the system reboots. This is intended to frustrate exploit attempts by keeping the location of kernel structures unpredictable.
However, a recent breakthrough by security researcher r0keb demonstrates that KASLR’s randomness can be systematically undone—by reading subtle clues left in the CPU’s cache behavior.
No Privileges, No Problem
Unlike traditional KASLR bypass methods, which often depend on internal Windows APIs or administrator rights, this approach functions under standard user-level permissions. Even systems running the hardened Windows 11 24H2 update—which patched prior kernel information leaks—remain vulnerable.
The attack exploits CPU cache timing discrepancies to identify the active location of ntoskrnl.exe, Windows’ central kernel image. By analyzing how quickly different memory addresses respond to probing, the technique uncovers patterns that betray which pages are loaded and where the kernel resides.
Microscopic Timing, Massive Insight
The core methodology draws from speculative execution side-channel attacks and leverages CPU instructions like prefetchnta, prefetcht2, mfence, and rdtscp. This tight instruction loop enables high-precision timing of memory fetches across the range of kernel address space (typically 0xfffff80000000000 to 0xfffff80800000000).
The collected timing data is then passed through statistical filters to isolate the fastest—i.e., cached—addresses, effectively mapping the kernel’s location in memory without any explicit access.
Assembly
prefetchnta byte ptr [r10]
prefetcht2 byte ptr [r10]
mfence
rdtscp
Building on Legacy, Breaking New Ground
This work builds upon previous cache timing research, including foundational insights from a figure known as “exploits-forsale,” but surpasses prior attempts in stealth and practicality. Where older methods leaned on access to high-level debug permissions or leaked kernel handles, this technique is almost entirely passive and far harder to detect.
Implications for Windows Kernel Security
The emergence of a low-privilege, cache-based bypass of KASLR represents a serious escalation in kernel exploitation risk. It opens the door to precision targeting of kernel vulnerabilities, even on patched and fully updated systems—an unsettling prospect for enterprise defenders and system architects alike.
Microsoft has yet to respond with a comprehensive mitigation, and given the nature of CPU-level leakage, a software-only fix may prove elusive.




