Leaky Address Masking: Exploiting Unmasked Spectre Gadgets with Noncanonical Address Translation
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- SysBumps: Exploiting Speculative Execution in System Calls for Breaking KASLR in macOS for Apple Silicon cites Spectre Attacks: Exploiting Speculative Execution
- SysBumps: Exploiting Speculative Execution in System Calls for Breaking KASLR in macOS for Apple Silicon cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
- SysBumps: Exploiting Speculative Execution in System Calls for Breaking KASLR in macOS for Apple Silicon cites Meltdown: Reading Kernel Memory from User Space
- Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs cites Spectre Attacks: Exploiting Speculative Execution
- Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
- Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs cites Meltdown: Reading Kernel Memory from User Space
- Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs cites 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 cites InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2
- Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMs cites GhostRace: Exploiting and Mitigating Speculative Race Conditions
- ZombieLoad: Cross-Privilege-Boundary Data Sampling cites Spectre Attacks: Exploiting Speculative Execution
- Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
- Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution cites Spectre Attacks: Exploiting Speculative Execution
- InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2 cites Spectre Attacks: Exploiting Speculative Execution
- InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2 cites Meltdown: Reading Kernel Memory from User Space
- InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2 cites GhostRace: Exploiting and Mitigating Speculative Race Conditions
- GhostRace: Exploiting and Mitigating Speculative Race Conditions cites InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2
- GhostRace: Exploiting and Mitigating Speculative Race Conditions cites Spectre Attacks: Exploiting Speculative Execution
- GhostRace: Exploiting and Mitigating Speculative Race Conditions cites Meltdown: Reading Kernel Memory from User Space
- Defeating Transient Execution Attacks by Limiting Secret Reachability Through Register Hiding and ShadowCFI cites Spectre Attacks: Exploiting Speculative Execution
- Defeating Transient Execution Attacks by Limiting Secret Reachability Through Register Hiding and ShadowCFI cites InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2
Cited by top-tier papers10
- InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2Sander Wiebing, Alvise de Faveri Tron, Herbert Bos, Cristiano GiuffridaUSENIX Security 2024 · 32 citations
- GhostRace: Exploiting and Mitigating Speculative Race ConditionsHany Ragab, Andrea Mambretti, Anil Kurmus, Cristiano GiuffridaUSENIX Security 2024 · 10 citations
- SysBumps: Exploiting Speculative Execution in System Calls for Breaking KASLR in macOS for Apple SiliconHyerean Jang, Taehun Kim, Youngjoo ShinCCS 2024 · 6 citations
- Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMsCharly Castes, Andrew BaumannASPLOS 2024 · 2 citations
- Defeating Transient Execution Attacks by Limiting Secret Reachability Through Register Hiding and ShadowCFIDaniël Trujillo, Jagadish Kotra, David Kaplan, Mengjia YanS&P 2026 · 1 citation
Builds on33
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
- Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher et al.USENIX Security 2018 · 1,456 citations
- Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order ExecutionJo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin et al.USENIX Security 2018 · 1,175 citations
- SOK: (State of) The Art of War: Offensive Techniques in Binary AnalysisYan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens et al.S&P 2016 · 1,085 citations
- ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck et al.CCS 2019 · 464 citations
Related papers
- Peek-a-Walk: Leaking Secrets via Page Walk Side ChannelsAlan Wang, Boru Chen, Yingchen Wang, Christopher W. Fletcher et al.S&P 2025
- AMD Prefetch Attacks through Power and TimeMoritz Lipp, Daniel Gruss, Michael SchwarzUSENIX Security 2022
- RETBLEED: Arbitrary Speculative Code Execution with Return InstructionsJohannes Wikner, Kaveh RazaviUSENIX Security 2022
- SpecHammer: Combining Spectre and Rowhammer for New Speculative AttacksYoussef Tobah, Andrew Kwong, Ingab Kang, Daniel Genkin et al.S&P 2022 · 81 citations
- Speculative Probing: Hacking Blind in the Spectre EraEnes Göktas, Kaveh Razavi, Georgios Portokalidis, Herbert Bos et al.CCS 2020 · 36 citations
