Kernel Address Space Layout Randomization (KASLR) is a security mitigation that randomizes where the operating system kernel and its components are placed in memory during startup. By making those addresses harder to predict, it can hinder attacks that rely on locating kernel code or data, such as exploiting a memory-corruption flaw to gain elevated privileges.
KASLR is a defense-in-depth measure, not a fix for vulnerabilities. In a real attack, an attacker may first need to obtain a kernel address through an information leak or another technique before reliably targeting kernel memory. For example, a flaw in a device driver that permits a kernel-memory write may be more difficult to exploit when KASLR is enabled, but KASLR does not prevent the faulty write itself. Defenders should keep the kernel and drivers patched and limit untrusted workloads’ access to host devices.


