Pixel Phones Hand Attackers a Fixed Kernel Address, Making KASLR Easy to Sidestep
Google's Project Zero has published research showing how a key Android defence, kernel address space layout randomisation (KASLR), can be sidestepped on Pixel phones. The researcher had a powerful arbitrary write primitive in the kernel but no KASLR leak, so they examined the Linux kernel's linear mapping instead.
The linear mapping is a region of kernel virtual memory that directly mirrors physical memory. On Android's arm64 setup, the address it starts at is calculated from a value called memstart_addr. In theory this value is randomised at every boot, but in practice it has not been for a while, and a kernel change has since removed linear map randomisation as a supported feature on arm64. The observed value on the tested device was 0x80000000, a fixed number.
The cause is a design trade-off. Android enables memory hot plugging, which is used for VM memory sharing. Android uses 39-bit kernel virtual addresses, so the kernel places the linear map at the lowest possible address to leave room for up to 256GB of hypothetical future memory. Kernel developers chose not to invest the effort needed to support both hot plugging and randomisation.
Pixel phones add a second problem: the bootloader decompresses the kernel at the same physical address, 0x80010000, on every boot. Some other phones, such as the Samsung S25, randomise this. Combined, these facts mean an attacker can compute a valid address for any kernel data item, for example modprobe_path on a Pixel 9, using a hardcoded base of 0xffffff8000010000. The linear map is also mapped read-write for kernel data. One limit is that code regions are not mapped executable, so this base does not help with code execution techniques such as ROP. However, the researcher notes that arbitrary read-write is often the attacker's real goal.
Why it matters
Defenders who assume KASLR forces attackers to find a separate information leak should rethink that on Pixel devices, because a lone arbitrary write bug becomes far more useful when kernel data addresses are fixed. Organisations issuing Pixel phones for staff or high-risk users face a larger gap between a kernel bug being found and it being practically exploitable. It also shows that a mitigation can quietly stop working in practice while still appearing enabled.
What to do
- Apply Android and Pixel security updates promptly across managed devices.
- Prioritise patching of kernel memory write vulnerabilities on Pixel fleets, since randomisation will not slow exploitation.
- Consider device models that randomise the kernel's physical load address when choosing phones for high-risk staff.