arXiv:2610.39374cs.CROct 2026

Manuscript Offprint

arXiv:2610.39374

DualGuard: Comprehensive and Efficient Memory Safety across Sequential and Speculative Execution

Sixuan Dang, Quan Zhou, Kaiming Huang, Jianan Zhu, Anitha Gollamudi, Trent Jaeger, Danfeng Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Artifact Evaluated NDSS Available Functional Reproduced

DUALGUARD: Comprehensive and Efficient Memory Safety across Sequential and Speculative Execution

Sixuan Dang Duke University sixuan.dang@duke.edu

Quan Zhou Google quanzhour@google.com

Kaiming Huang Penn State University kzh529@psu.edu

Jianan Zhu UC Riverside jzhu218@ucr.edu

Anitha Gollamudi University of Massachusetts Lowell anitha_gollamudi@uml.edu

Trent Jaeger UC Riverside trentj@ucr.edu

Danfeng Zhang Duke University danfeng.zhang@duke.edu

Abstract—Although decades of research have yielded sophisticated mechanisms for enforcing memory safety, speculative execution can subvert these protections through transient memory operations. Conversely, defenses designed specifically for speculative safety, such as Speculative Load Hardening (SLH), cannot enforce memory safety during non-speculative execution. A naive combination of defenses from both domains raises two fundamental challenges: (1) which combination of otherwise fragmented defenses can ensure dual memory safety under speculative and non-speculative executions? (2) whether such combinations introduce redundant protections that incur unnecessary performance overhead?

We present DUALGUARD, a unified framework for dual memory protection under non-speculative and speculative executions. DUALGUARD systematically analyzes memory behaviors, classifying them into four categories, and further identifies the minimal composition requirements for dual memory safety, which allow us to strategically combine existing mitigations and design new ones to avoid redundant or excessive protections. We implement DUALGUARD through a combination of static analysis and runtime enforcement within the LLVM infrastructure. Our evaluation demonstrates that DUALGUARD reduces overhead by 3%–72% compared to naive compositions of fragmented defenses. In some cases, it even incurs lower overhead than approaches that guarantee memory safety solely under either non-speculative or speculative execution.

References (62)