[Paper Review] SPOILER: Speculative Load Hazards Boost Rowhammer and Cache Attacks
Spoiler reveals a microarchitectural leakage in memory disambiguation that leaks physical page mappings to user space, enabling faster Rowhammer and cache attacks and even a JavaScript-based eviction/search acceleration.
Modern microarchitectures incorporate optimization techniques such as speculative loads and store forwarding to improve the memory bottleneck. The processor executes the load speculatively before the stores, and forwards the data of a preceding store to the load if there is a potential dependency. This enhances performance since the load does not have to wait for preceding stores to complete. However, the dependency prediction relies on partial address information, which may lead to false dependencies and stall hazards. In this work, we are the first to show that the dependency resolution logic that serves the speculative load can be exploited to gain information about the physical page mappings. Microarchitectural side-channel attacks such as Rowhammer and cache attacks like Prime+Probe rely on the reverse engineering of the virtual-to-physical address mapping. We propose the SPOILER attack which exploits this leakage to speed up this reverse engineering by a factor of 256. Then, we show how this can improve the Prime+Probe attack by a 4096 factor speed up of the eviction set search, even from sandboxed environments like JavaScript. Finally, we improve the Rowhammer attack by showing how SPOILER helps to conduct DRAM row conflicts deterministically with up to 100% chance, and by demonstrating a double-sided Rowhammer attack with normal user's privilege. The later is due to the possibility of detecting contiguous memory pages using the SPOILER leakage.
Motivation & Objective
- Motivate and quantify a previously unknown leakage in memory disambiguation during speculative loads.
- Demonstrate how this leakage accelerates reverse engineering of virtual-to-physical mappings by an order of magnitude or more.
- Show how the leakage improves Prime+Probe eviction set construction and enables more effective Rowhammer strategies.
- Assess the feasibility of Spoiler-augmented attacks in sandboxed environments such as JavaScript.
Proposed method
- Design an experiment (Algorithm 1) to trigger speculative loads with 4K and 1 MB aliasing in the store buffer and measure speculative load timing.
- Use Hardware Performance Counters to correlate timing with dependency resolution events (e.g., Ld_Blocks_Partial:Address_Alias, Cycle_Activity:Stalls_Ldm_Pending).
- Analyze how the 1 MB aliasing reveals information about physical page mappings, notably matching 20 least significant physical address bits.
- Evaluate Spoiler’s effectiveness in speeding up virtual-to-physical mapping reverse engineering by up to 256x in native and JavaScript environments.
- Demonstrate improved eviction-set search and a double-sided Rowhammer attack enabled by Spoiler’s contiguous-page detection capability.
- Discuss how the memory disambiguator and hyperthreading influence Spoiler’s leakage and applicability.
Experimental results
Research questions
- RQ1Can speculative load hazards reveal partial physical address information that leaks virtual-to-physical mappings?
- RQ2How much can Spoiler speed up reverse engineering of physical address mappings for cache attacks and Rowhammer?
- RQ3What is the impact of Spoiler on eviction-set construction and the feasibility of browser-based (JavaScript) attacks?
- RQ4Can Spoiler enable deterministic DRAM row conflicts and higher-precision Rowhammer attacks under normal user privilege?
Key findings
- Spoiler uncovers a leakage from false dependencies during speculative loads that depends on 1 MB aliasing of physical addresses.
- The leakage enables reverse engineering of virtual-to-physical mappings up to a factor of 256 faster than prior methods.
- Prime+Probe eviction-set search is accelerated by up to 4096x, enabling cache attacks even from sandboxed environments like JavaScript.
- Spoiler improves Rowhammer by enabling deterministic DRAM row conflicts with up to 100% success under certain conditions and demonstrates a double-sided Rowhammer under normal user privilege.
- The leakage persists across Intel generations starting from the first Core processors and is distinguishable from 4K aliasing, with higher impact on newer CPUs.
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.