Lune

USENIX Security2024顶会

GhostRace: Exploiting and Mitigating Speculative Race Conditions

Hany Ragab, Andrea Mambretti, Anil Kurmus, Cristiano Giuffrida

摘要

Race conditions arise when multiple threads attempt to access a shared resource without proper synchronization, often leading to vulnerabilities such as concurrent use-after-free. To mitigate their occurrence, operating systems rely on synchronization primitives such as mutexes, spinlocks, etc. In this paper, we present GhostRace, the first security analysis of these primitives on speculatively executed code paths. Our key finding is that all the common synchronization primitives can be microarchitecturally bypassed on speculative paths, turning all architecturally race-free critical regions into Speculative Race Conditions (SRCs). To study the severity of SRCs, we focus on Speculative Concurrent Use-After-Free (SCUAF) and uncover 1,283 potentially exploitable gadgets in the Linux kernel. Moreover, we demonstrate that SCUAF information disclosure attacks against the kernel are not only practical, but that their reliability can closely match that of traditional Spectre attacks, with our proof of concept leaking kernel memory at 12 KB/s. Crucially, we develop a new technique to create an unbounded race window, accommodating an arbitrary number of SCUAF invocations required by an end-to-end attack in a single race window. To address the new attack surface, we also propose a generic SRC mitigation to harden all the affected synchronization primitives on Linux. Our mitigation requires minimal kernel changes and incurs only ≈5% geomean performance overhead on LMBench.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • SMoTherSpectre: Exploiting Speculative Execution through Port Contention 引用了 Spectre Attacks: Exploiting Speculative Execution
  • SMoTherSpectre: Exploiting Speculative Execution through Port Contention 引用了 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 引用了 RIDL: Rogue In-Flight Data Load
  • 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 引用了 InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2
  • RIDL: Rogue In-Flight Data Load 引用了 Spectre Attacks: Exploiting Speculative Execution
  • RIDL: Rogue In-Flight Data Load 引用了 Meltdown: Reading Kernel Memory from User Space
  • Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
  • MileSan: Detecting Exploitable Microarchitectural Leakage via Differential Hardware-Software Taint Tracking 引用了 Spectre Attacks: Exploiting Speculative Execution
  • MileSan: Detecting Exploitable Microarchitectural Leakage via Differential Hardware-Software Taint Tracking 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
  • MileSan: Detecting Exploitable Microarchitectural Leakage via Differential Hardware-Software Taint Tracking 引用了 RIDL: Rogue In-Flight Data Load
  • 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 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
  • InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2 引用了 RIDL: Rogue In-Flight Data Load
  • InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2 引用了 Meltdown: Reading Kernel Memory from User Space
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  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. Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMsCharly Castes, Andrew BaumannASPLOS 2024 · 2 次引用
  3. Cross-Cache Attacks for the Linux Kernel via PCP MassagingClaudio Migliorelli, Andrea Mambretti, Alessandro Sorniotti, Vittorio Zaccaria 等NDSS 2026
  4. MileSan: Detecting Exploitable Microarchitectural Leakage via Differential Hardware-Software Taint TrackingTobias Kovats, Flavien Solt, Katharina Ceesay-Seitz, Kaveh RazaviCCS 2025

它引用的 Paper34

  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. RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo 等S&P 2019 · 408 次引用
  4. Hawkeye: Towards a Desired Directed Grey-box FuzzerHongxu Chen, Yinxing Xue, Yuekang Li, Bihuan Chen 等CCS 2018 · 335 次引用
  5. SMoTherSpectre: Exploiting Speculative Execution through Port ContentionAtri Bhattacharyya, Alexandra Sandulescu, Matthias Neugschwandtner, Alessandro Sorniotti 等CCS 2019 · 267 次引用

相关 Paper

  1. Kasper: Scanning for Generalized Transient Execution Gadgets in the Linux KernelBrian Johannesmeyer, Jakob Koschel, Kaveh Razavi, Herbert Bos 等NDSS 2022
  2. Speculative Probing: Hacking Blind in the Spectre EraEnes Göktas, Kaveh Razavi, Georgios Portokalidis, Herbert Bos 等CCS 2020 · 36 次引用
  3. An Analysis of Speculative Type Confusion Vulnerabilities in the WildOfek Kirzner, Adam MorrisonUSENIX Security 2021 · 40 次引用
  4. ExpRace: Exploiting Kernel Races through Raising InterruptsYoochan Lee, Changwoo Min, Byoungyoung LeeUSENIX Security 2021 · 40 次引用
  5. Spectre on RISC-V Silicon: Attacks and Defenses on Commercial Out-of-Order ProcessorsLukas Gerlach, Marton Bognar, Daniel Weber, Michael Schwarz 等USENIX Security 2026
黄昏的海面,两侧是细线勾勒的悬崖