Lune

S&P2024顶会

Leaky Address Masking: Exploiting Unmasked Spectre Gadgets with Noncanonical Address Translation

Mathé Hertogh, Sander Wiebing, Cristiano Giuffrida

摘要

Linear Address Masking (LAM) is a recently announced Intel feature that enables the CPU to mask off some upper bits before dereferencing a 64-bit pointer. The key idea behind LAM (as well as the similar Upper Address Ignore or UAI from AMD), is to allow software to efficiently make use of untranslated bits of 64-bit linear addresses for metadata.

The assumption is that, with LAM (or UAI) features enabled, one can implement fast security (e.g., memory safety) checks and ultimately improve security of production systems.

In this paper, we challenge this assumption and show that LAM features can actually degrade security in production by dramatically increasing the Spectre attack surface. To support this claim, we present a new Spectre covert channel based on noncanonical address translation and address key challenges to implement it in practice. For instance, we exploit properties of modern TLBs to craft a reliable signal and LAM features to (crucially) bypass canonicality checks. Moreover, we show that, unlike classic Spectre covert channels, ours unlocks generic (or unmasked) Spectre gadgets encoding high-entropy secrets as dereferenced pointers. Unlike classic (or masked) gadgets, we show the latter escape deployed mitigations and are pervasive in high-value targets such as the Linux kernel. To showcase the new attack surface, we present an end-to-end exploit for Spectre based on LAM (SLAM) targeting upcoming Intel CPUs. We specifically focus on the BHI Spectre variant and show that, despite mitigations believed to eradicate the attack surface, our exploit can abuse a variety of gadgets in the latest Linux kernel and leak the root password hash within minutes from kernel memory. We conclude by evaluating mitigations.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • SysBumps: Exploiting Speculative Execution in System Calls for Breaking KASLR in macOS for Apple Silicon 引用了 Spectre Attacks: Exploiting Speculative Execution
  • SysBumps: Exploiting Speculative Execution in System Calls for Breaking KASLR in macOS for Apple Silicon 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • SysBumps: Exploiting Speculative Execution in System Calls for Breaking KASLR in macOS for Apple Silicon 引用了 Meltdown: Reading Kernel Memory from User Space
  • Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs 引用了 Meltdown: Reading Kernel Memory from User Space
  • Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs 引用了 InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2
  • Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs 引用了 GhostRace: Exploiting and Mitigating Speculative Race Conditions
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution 引用了 Spectre Attacks: Exploiting Speculative Execution
  • InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2 引用了 Spectre Attacks: Exploiting Speculative Execution
  • InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2 引用了 Meltdown: Reading Kernel Memory from User Space
  • InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2 引用了 GhostRace: Exploiting and Mitigating Speculative Race Conditions
  • GhostRace: Exploiting and Mitigating Speculative Race Conditions 引用了 InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2
  • GhostRace: Exploiting and Mitigating Speculative Race Conditions 引用了 Spectre Attacks: Exploiting Speculative Execution
  • GhostRace: Exploiting and Mitigating Speculative Race Conditions 引用了 Meltdown: Reading Kernel Memory from User Space
  • Defeating Transient Execution Attacks by Limiting Secret Reachability Through Register Hiding and ShadowCFI 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Defeating Transient Execution Attacks by Limiting Secret Reachability Through Register Hiding and ShadowCFI 引用了 InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper10

  1. InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2Sander Wiebing, Alvise de Faveri Tron, Herbert Bos, Cristiano GiuffridaUSENIX Security 2024 · 32 次引用
  2. GhostRace: Exploiting and Mitigating Speculative Race ConditionsHany Ragab, Andrea Mambretti, Anil Kurmus, Cristiano GiuffridaUSENIX Security 2024 · 10 次引用
  3. SysBumps: Exploiting Speculative Execution in System Calls for Breaking KASLR in macOS for Apple SiliconHyerean Jang, Taehun Kim, Youngjoo ShinCCS 2024 · 6 次引用
  4. Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMsCharly Castes, Andrew BaumannASPLOS 2024 · 2 次引用
  5. Defeating Transient Execution Attacks by Limiting Secret Reachability Through Register Hiding and ShadowCFIDaniël Trujillo, Jagadish Kotra, David Kaplan, Mengjia YanS&P 2026 · 1 次引用

它引用的 Paper33

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
  2. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
  3. Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order ExecutionJo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin 等USENIX Security 2018 · 1,175 次引用
  4. SOK: (State of) The Art of War: Offensive Techniques in Binary AnalysisYan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens 等S&P 2016 · 1,085 次引用
  5. ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck 等CCS 2019 · 464 次引用

相关 Paper

  1. Peek-a-Walk: Leaking Secrets via Page Walk Side ChannelsAlan Wang, Boru Chen, Yingchen Wang, Christopher W. Fletcher 等S&P 2025
  2. AMD Prefetch Attacks through Power and TimeMoritz Lipp, Daniel Gruss, Michael SchwarzUSENIX Security 2022
  3. RETBLEED: Arbitrary Speculative Code Execution with Return InstructionsJohannes Wikner, Kaveh RazaviUSENIX Security 2022
  4. SpecHammer: Combining Spectre and Rowhammer for New Speculative AttacksYoussef Tobah, Andrew Kwong, Ingab Kang, Daniel Genkin 等S&P 2022 · 81 次引用
  5. Speculative Probing: Hacking Blind in the Spectre EraEnes Göktas, Kaveh Razavi, Georgios Portokalidis, Herbert Bos 等CCS 2020 · 36 次引用
黄昏的海面,两侧是细线勾勒的悬崖