[Paper Review] Still Hammerable and Exploitable: on the Effectiveness of Software-only Physical Kernel Isolation.
This paper presents a novel rowhammer-based exploit that bypasses CATT, a state-of-the-art software-only physical kernel isolation technique, by exploiting double-ownership kernel buffers shared between kernel and user domains. By using a memory ambush technique and an efficient side-channel-guided hammering algorithm, the attack achieves root and kernel privileges with only 128MB of memory, within 1 to 36 minutes, without exhausting system memory or relying on virtual-to-physical mappings.
All the state-of-the-art rowhammer attacks can break the MMU-enforced inter-domain isolation based on the fact that the physical memory owned by each domain is adjacent to each other. To mitigate such attacks, CATT as the first generic and practical technique, essentially separates each domain physically. It divides the physical memory into multiple partitions and keeps each partition occupied by only one domain, called the single ownership invariant. Hence, all existing rowhammer attacks are effectively defeated. In this paper, we develop a novel practical exploit, which could effectively defeat CATT and gain both root and kernel privileges, without exhausting page cache and system memory, or relying on any virtual-to-physical mapping information. Specifically, our key observation is that on the modern OSes there exist double-ownership kernel buffers (e.g., video buffers) owned concurrently by the kernel and user domains, invalidating the singleownership invariant enforced by CATT and making the rowhammer-based attack become possible again. In contrast to existing conspicuous rowhammer exploits that exhaust page cache or even the whole system memory, we propose a new attack technique, named memory ambush, which is able to place the hammerable kernel buffers physically adjacent to the target objects (e.g., page tables) with only a small amount of memory, making our exploit stealthier and fewer memory fingerprints. We also replace the inefficient rowhammer algorithm that blindly picks up addresses for hammering with an efficient one, which probes suitable addresses using a side channel. We implement our exploit on the Linux kernel 4.10.0-generic. Our experiment results indicate that our exploit is able to gain the root and kernel privileges within roughly 1 to 36 minutes. The occupied memory could be reduced to 128MB.
Motivation & Objective
- To investigate whether modern OSes still allow rowhammer attacks despite CATT’s physical memory partitioning.
- To identify and exploit the existence of double-ownership kernel buffers that violate CATT’s single-ownership invariant.
- To design a stealthier, memory-efficient rowhammer exploit that avoids page cache exhaustion and virtual-to-physical mapping dependencies.
- To demonstrate a practical privilege escalation attack that achieves root and kernel access in a realistic Linux environment.
Proposed method
- Identify double-ownership kernel buffers—such as video buffers—shared between kernel and user domains, which violate CATT’s single-ownership invariant.
- Develop a memory ambush technique to physically place hammerable kernel buffers adjacent to target objects like page tables using only a small memory footprint.
- Implement an efficient rowhammer algorithm that uses a side channel to probe and select optimal addresses for hammering, replacing brute-force address selection.
- Design the exploit to operate without exhausting system memory or relying on virtual-to-physical address mappings, enhancing stealth and practicality.
- Integrate the technique into the Linux kernel 4.10.0-generic to validate the attack in a real-world environment.
- Optimize memory usage to reduce the required footprint to as low as 128MB.
Experimental results
Research questions
- RQ1Can rowhammer attacks still succeed in systems protected by CATT, which enforces single physical memory ownership per domain?
- RQ2What system-level mechanisms, such as double-ownership kernel buffers, inadvertently undermine CATT’s isolation guarantees?
- RQ3How can a rowhammer exploit be made stealthier by minimizing memory consumption and avoiding page cache exhaustion?
- RQ4To what extent can side-channel techniques improve the efficiency of rowhammer address selection?
- RQ5What is the practical feasibility and performance of such an exploit in a real Linux kernel environment?
Key findings
- The exploit successfully bypasses CATT by exploiting double-ownership kernel buffers that violate the single-ownership invariant.
- The memory ambush technique enables physical adjacency between hammerable buffers and target objects using only 128MB of memory.
- The side-channel-guided hammering algorithm significantly improves efficiency compared to blind address selection.
- The attack achieves root and kernel privileges within 1 to 36 minutes on Linux kernel 4.10.0-generic.
- The exploit leaves minimal memory fingerprints, making it more stealthy than previous rowhammer attacks that exhaust system memory.
- The results demonstrate that software-only physical isolation mechanisms like CATT are not sufficient to prevent sophisticated rowhammer-based privilege escalation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.