Skip to main content
QUICK REVIEW

[Paper Review] SoftTRR: Protect Page Tables Against RowHammer Attacks using Software-only Target Row Refresh

Zhang Zhi, Yueqiang Cheng|arXiv (Cornell University)|Feb 20, 2021
Security and Verification in ComputingComputer Science31 references13 citations
TL;DR

SoftTRR is a software-only defense that protects x86 system page tables from Rowhammer attacks by detecting suspicious memory access patterns near page table rows and triggering targeted row refreshes via kernel-managed memory tracking. It effectively mitigates all known kernel privilege escalation attacks using only existing virtual memory mechanisms, with minimal performance and memory overhead.

ABSTRACT

Rowhammer attacks that corrupt level-1 page tables to gain kernel privilege are the most detrimental to system security and hard to mitigate. However, recently proposed software-only mitigations are not effective against such kernel privilege escalation attacks. In this paper, we propose an effective and practical software-only defense, called SoftTRR, to protect page tables from all existing rowhammer attacks on x86. The key idea of SoftTRR is to refresh the rows occupied by page tables when a suspicious rowhammer activity is detected. SoftTRR is motivated by DRAM-chip-based target row refresh (ChipTRR) but eliminates its main security limitation (i.e., ChipTRR tracks a limited number of rows and thus can be bypassed by many-sided hammer). Specifically, SoftTRR protects an unlimited number of page tables by tracking memory accesses to the rows that are in close proximity to page-table rows and refreshing the page-table rows once the tracked access count exceeds a pre-defined threshold. We implement a prototype of SoftTRR as a loadable kernel module, and evaluate its security effectiveness, performance overhead, and memory consumption. The experimental results show that SoftTRR protects page tables from real-world rowhammer attacks and incurs small performance overhead as well as memory cost.

Motivation & Objective

  • To address the critical security threat posed by Rowhammer-induced corruption of level-1 page tables, which enables kernel privilege escalation.
  • To design a software-only defense that works on commodity hardware without kernel modifications, overcoming limitations of prior software mitigations.
  • To protect against all known Rowhammer-based kernel privilege escalation attacks, including those bypassing existing software defenses like CATT, CTA, and ZebRAM.
  • To eliminate the reliance on hardware-specific features while maintaining high effectiveness and low overhead.
  • To ensure compatibility and stability in real-world deployment across diverse Linux systems with DDR3 and DDR4 memory.

Proposed method

  • SoftTRR uses the kernel’s MMU and page table management to track memory accesses to rows adjacent to page table rows by setting the reserved (rsrv) bit in leaf page table entries.
  • It monitors access counts to these neighboring rows and triggers a refresh of the corresponding page table rows when the count exceeds a predefined threshold.
  • The mechanism is triggered only when suspicious hammering activity is detected on adjacent rows, ensuring targeted and efficient refreshes.
  • The design leverages existing virtual memory infrastructure, avoiding the need for kernel modifications by implementing SoftTRR as a loadable kernel module.
  • It supports protection for page table rows up to six rows away from aggressor rows, addressing the limitations of prior defenses assuming one-row distance.
  • The system uses active checks on the present bit in page table entries to detect and respond to access patterns indicative of Rowhammer exploitation.

Experimental results

Research questions

  • RQ1Can a software-only defense effectively protect page tables from all known Rowhammer-based kernel privilege escalation attacks on x86?
  • RQ2How can a software defense overcome the limitations of hardware-based target row refresh (e.g., ChipTRR) that fail under many-sided hammering?
  • RQ3Can effective Rowhammer mitigation be achieved without kernel modifications, using only existing virtual memory mechanisms?
  • RQ4What is the performance and memory overhead of such a defense in real-world workloads?
  • RQ5Can the defense be extended to protect higher-level page tables or other sensitive data structures?

Key findings

  • SoftTRR successfully defends against all tested kernel privilege escalation attacks, including PThammer, which bypasses prior software-only mitigations.
  • The system incurs negligible performance overhead, with no measurable deviation in stress tests using the Linux Test Project (LTP).
  • Memory consumption remains low, as SoftTRR only tracks access counts to a limited set of rows adjacent to page tables.
  • The defense maintains system stability, with no observed crashes or anomalies during extended benchmarking and real-world workloads.
  • The prototype, implemented as a loadable kernel module, is compatible with commodity Linux systems using DDR3 and DDR4 memory modules.
  • SoftTRR’s design is extensible and can be adapted to protect higher-level page tables or other sensitive data structures by extending the tracking and refresh logic.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.