Lukas Maar is a PhD candidate at the ISEC - Institute of Information Security (former IAIK) at the Graz University of Technology under the supervision of Stefan Mangard. Lukas focuses on system security, especially kernel and side-channel security.
Lukas Giner is a PhD candidate at the ISEC - Institute of Information Security (former IAIK) at the Graz University of Technology under the supervision of Daniel Gruss. Lukas focuses on microarchitectural side-channel security.
Abstract
In this talk, we will present a novel timing side-channel attack on the TLB, combined with kernel allocator massaging, to derandomize the location of security-critical kernel objects in the latest Linux kernel. We call these location disclosure attacks, as they reveal memory layout information, an essential step for most modern kernel exploits.
In contrast to prior TLB side-channel attacks, which reveal only coarse-grained memory locations (e.g., physical mapping base address or code segment), our attack is the first to leak the locations of security-critical kernel objects, including kernel heap objects, page tables, and the kernel stack. Using our location disclosure combined with memory corruption attacks significantly enhances the stability and reliability of kernel exploitation. Our approach enables new exploit techniques as well as re-enables previously mitigated ones.
We conduct an in-depth root cause analysis of this side channel, examining how TLB leakage arises. Specifically, we show how design decisions in kernel defenses and the kernel memory allocator unintentionally facilitate these attacks, making location leakage possible.
Finally, we show an end-to-end attack in which an unprivileged user leaks most of the security-critical kernel objects within seconds on a recent Intel CPU and an up-to-date Ubuntu Linux kernel.
What you'll get from it
Most Linux kernel exploits first need to know where things sit in memory. Lukas Maar and Lukas Giner show a timing side channel on the TLB that, with some allocator massaging, reveals the location of kernel heap objects, page tables and the kernel stack, where earlier TLB attacks only exposed coarse base addresses. They trace why it leaks, down to design choices in kernel defences and the allocator, and finish with an unprivileged user leaking most of them within seconds on current Ubuntu and a recent Intel CPU. Kernel exploit writers and people hardening the kernel will both want it.