ret2spec: Speculative Execution Using Return Stack Buffers
摘要
Speculative execution is an optimization technique that has been part of CPUs for over a decade. It predicts the outcome and target of branch instructions to avoid stalling the execution pipeline. However, until recently, the security implications of speculative code execution have not been studied. In this paper, we investigate a special type of branch predictor that is responsible for predicting return addresses. To the best of our knowledge, we are the first to study return address predictors and their consequences for the security of modern software. In our work, we show how return stack buffers (RSBs), the core unit of return address predictors, can be used to trigger misspeculations. Based on this knowledge, we propose two new attack variants using RSBs that give attackers similar capabilities as the documented Spectre attacks. We show how local attackers can gain arbitrary speculative code execution across processes, e.g., to leak passwords another user enters on a shared system. Our evaluation showed that the recent Spectre countermeasures deployed in operating systems can also cover such RSB-based cross-process attacks. Yet we then demonstrate that attackers can trigger misspeculation in JIT environments in order to leak arbitrary memory content of browser processes. Reading outside the sandboxed memory region with JIT-compiled code is still possible with 80% accuracy on average.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 124 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection 引用了 Spectre Attacks: Exploiting Speculative Execution
- LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection 引用了 RIDL: Rogue In-Flight Data Load
- LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection 引用了 Fallout: Leaking Data on Meltdown-resistant CPUs
- Spectre Attacks: Exploiting Speculative Execution 引用了 ASLR on the Line: Practical Cache Attacks on the MMU
- Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR 引用了 Breaking Kernel Address Space Layout Randomization with Intel TSX
- Breaking Kernel Address Space Layout Randomization with Intel TSX 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 Spectre Attacks: Exploiting Speculative Execution
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 Breaking Kernel Address Space Layout Randomization with Intel TSX
- RIDL: Rogue In-Flight Data Load 引用了 Spectre Attacks: Exploiting Speculative Execution
- RIDL: Rogue In-Flight Data Load 引用了 ASLR on the Line: Practical Cache Attacks on the MMU
- A Systematic Evaluation of Transient Execution Attacks and Defenses 引用了 Spectre Attacks: Exploiting Speculative Execution
- A Systematic Evaluation of Transient Execution Attacks and Defenses 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- ASLR on the Line: Practical Cache Attacks on the MMU 引用了 Breaking Kernel Address Space Layout Randomization with Intel TSX
- Fallout: Leaking Data on Meltdown-resistant CPUs 引用了 Spectre Attacks: Exploiting Speculative Execution
- Fallout: Leaking Data on Meltdown-resistant CPUs 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- Fallout: Leaking Data on Meltdown-resistant CPUs 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- Fallout: Leaking Data on Meltdown-resistant CPUs 引用了 RIDL: Rogue In-Flight Data Load
- Fallout: Leaking Data on Meltdown-resistant CPUs 引用了 ASLR on the Line: Practical Cache Attacks on the MMU
- Fallout: Leaking Data on Meltdown-resistant CPUs 引用了 Breaking Kernel Address Space Layout Randomization with Intel TSX
- Fallout: Leaking Data on Meltdown-resistant CPUs 引用了 ARMageddon: Cache Attacks on Mobile Devices
引用它的顶会 Paper124
- ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck 等CCS 2019 · 464 次引用
- A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp 等USENIX Security 2019 · 442 次引用
- RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo 等S&P 2019 · 408 次引用
- Fallout: Leaking Data on Meltdown-resistant CPUsClaudio Canella, Daniel Genkin, Lukas Giner, Daniel Gruss 等CCS 2019 · 289 次引用
- LVI: Hijacking Transient Execution through Microarchitectural Load Value InjectionJo Van Bulck, Daniel Moghimi, Michael Schwarz, Moritz Lipp 等S&P 2020 · 275 次引用
它引用的 Paper8
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
- ARMageddon: Cache Attacks on Mobile DevicesMoritz Lipp, Daniel Gruss, Raphael Spreitzer, Clémentine Maurice 等USENIX Security 2016 · 451 次引用
- Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLRDaniel Gruss, Clémentine Maurice, Anders Fogh, Moritz Lipp 等CCS 2016 · 278 次引用
- ASLR on the Line: Practical Cache Attacks on the MMUBen Gras, Kaveh Razavi, Erik Bosman, Herbert Bos 等NDSS 2017 · 276 次引用
- Breaking Kernel Address Space Layout Randomization with Intel TSXYeongjin Jang, Sangho Lee, Taesoo KimCCS 2016 · 174 次引用
相关 Paper
- SpecCFI: Mitigating Spectre Attacks using CFI Informed SpeculationEsmaeil Mohammadian Koruyeh, Shirin Haji Amin Shirazi, Khaled N. Khasawneh, Chengyu Song 等S&P 2020 · 74 次引用
- SSBleed: Non-Speculative Side-Channel Attacks via Speculative Store Bypass on Armv9 CPUsChang Liu, Hongpei Zheng, Xin Zhang, Dapeng Ju 等HPCA 2026 · 1 次引用
- Exploiting Inaccurate Branch History in Side-Channel AttacksYuhui Zhu, Alessandro BiondiUSENIX Security 2025
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and ProfitChang Liu, Dongsheng Wang, Yongqiang Lyu, Pengfei Qiu 等HPCA 2024 · 9 次引用
- SPECRUN: The Danger of Speculative Runahead Execution in ProcessorsChaoqun Shen, Gang Qu, Jiliang ZhangDAC 2024 · 1 次引用
