Abstract
Rowhammer attacks pose a significant threat to modern computing systems by exploiting hardware vulnerabilities to flip bits in memory. While software-based defenses like Physical Domain Isolation (CATT) aim to partition memory into secure zones, this paper introduces CATTmew, an exploit that demonstrates how modern OS performance optimizations can be leveraged to bypass these protections. By utilizing "double-owned" memory buffers and a novel "memory ambush" technique, researchers achieved root and kernel privileges in under a minute with minimal memory overhead, proving that current software-only physical isolation is insufficient.
Introduction
Rowhammer is a hardware vulnerability where rapidly accessing ("hammering") a row of DRAM cells causes electrical leakage that flips bits in adjacent rows. This allows attackers to bypass the Memory Management Unit (MMU) and corrupt sensitive data like page tables. To mitigate this, CATT (Physical Domain Isolation) was proposed to physically partition DRAM into "kernel" and "user" zones, separated by an empty "guard" row. Theoretically, user code can only hammer rows in the user partition, leaving the kernel partition untouched.
The CATTmew Attack
The researchers identified a critical flaw in CATT: the existence of "double-owned" buffers. Modern Linux kernels use mmap to share kernel-allocated buffers (such as Video4Linux or SCSI Generic buffers) directly with user processes to avoid the latency of data copying. Because these are kernel-allocated, they reside in the kernel partition, yet they remain accessible—and thus hammerable—by user processes.
Technical Innovations
- Identifying Double-owned Buffers: Static analysis of the Linux kernel (v4.17.10) revealed over 529 instances of
mmapoperations that could potentially create these vulnerable buffers. As shown in the distribution below, drivers represent the largest portion of this attack surface.
- Memory Ambush: Rather than traditional "memory spraying," which is easily detected, CATTmew exploits the deterministic behavior of the Linux buddy allocator. By draining small memory blocks and requesting specific sizes, the attack forces the kernel to place a hammerable buffer physically adjacent to a target kernel page table.
- Timing-based Bank Identification: To overcome the lack of access to physical address maps (like
/proc/pagemap), the authors use a timing channel to identify "row-buffer conflicts," signaling that two virtual addresses belong to the same DRAM bank.
Key Results and Evaluation
The exploit was evaluated on physical hardware, including Intel Sandy Bridge systems with DDR3 memory. The results were stark:
- Speed: Kernel privileges were gained in as little as 0.1 to 1 minute.
- Efficiency: The attack is approximately 1080x more efficient than traditional single-sided Rowhammering.
- Stealth: Successful attacks required only 88MB of memory, avoiding the Out-of-Memory (OOM) alarms triggered by previous methods.
- Reliability: The "Memory Ambush" technique achieved a 100% success rate in positioning the attacker's buffer next to target page tables across 50 test runs.
Conclusion
The CATTmew exploit highlights a fundamental conflict between performance and security. The very optimizations that enable zero-copy networking and high-speed video processing create the "backdoors" that break physical isolation. As the Linux kernel evolves, the number of kernel-to-user memory mappings continues to increase, expanding the attack surface. Effective mitigation would require isolating every double-owned buffer with its own guard rows, a solution that introduces significant memory waste and architectural complexity. Future work will focus on automated tools to identify these vulnerabilities across diverse OS kernels and drivers.
Summary updated