Copy-on-Flip: Hardening ECC Memory Against Rowhammer Attacks
Andrea Di Dio, Koen Koning, Herbert Bos, Cristiano Giuffrida
Abstract
—Despite nearly decade-long mitigation efforts in academia and industry, the community is yet to find a practical solution to the Rowhammer vulnerability. Comprehensive software mitigations require complex changes to commodity systems, yielding significant run-time overhead and deterring practical adoption. Hardware mitigations, on the other hand, have generally grown more robust and efficient, but are difficult to deploy on commodity systems. Until recently, ECC memory implemented by the memory controller on server platforms seemed to provide the best of both worlds: use hardware features already on commodity systems to efficiently turn Rowhammer into a denial-of-service attack vector. Unfortunately, researchers have recently shown that attackers can perform one-bit-at-a-time memory templating and mount ECC-aware Rowhammer attacks. In this paper, we reconsider ECC memory as an avenue for Rowhammer mitigations and show that not all hope is lost. In particular, we show that it is feasible to devise a software-based design to both efficiently and effectively harden commodity ECC memory against ECC-aware Rowhammer attacks. To support this claim, we present Copy-on-Flip (CoF), an ECC-based software mitigation which uses a combination of memory migration and offlining to stop Rowhammer attacks on commodity server systems in a practical way. The key idea is to let the operating system interpose on all the error correction events and offline the vulnerable victim page as soon as the attacker has successfully templated a sufficient number of bit flips— while transparently migrating the victim data to a new page. We present a CoF prototype on Linux, where we also show it is feasible to operate simple memory management changes to support migration for the relevant user and kernel memory pages. Our evaluation shows CoF incurs low performance and memory overhead, while significantly reducing the Rowhammer
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.
14 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
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance cites BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance cites Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance cites Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read Disturbance cites Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions
- Siloz: Leveraging DRAM Isolation Domains to Prevent Inter-VM Rowhammer cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Siloz: Leveraging DRAM Isolation Domains to Prevent Inter-VM Rowhammer cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
- Siloz: Leveraging DRAM Isolation Domains to Prevent Inter-VM Rowhammer cites Flip Feng Shui: Hammering a Needle in the Software Stack
- BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
- RIDL: Rogue In-Flight Data Load cites Spectre Attacks: Exploiting Speculative Execution
- RIDL: Rogue In-Flight Data Load cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
- RIDL: Rogue In-Flight Data Load cites Flip Feng Shui: Hammering a Needle in the Software Stack
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance cites BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read Disturbance cites Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions
- Drammer: Deterministic Rowhammer Attacks on Mobile Platforms cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Drammer: Deterministic Rowhammer Attacks on Mobile Platforms cites Flip Feng Shui: Hammering a Needle in the Software Stack
- Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
Cited by top-tier papers14
- Chronus: Understanding and Securing the Cutting-Edge Industry Solutions to DRAM Read DisturbanceOguzhan Canpolat, A. Giray Yaglikçi, Geraldo F. Oliveira, Ataberk Olgun et al.HPCA 2025 · 23 citations
- Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future SolutionsAbdullah Giray Yaglikçi, Yahya Can Tugrul, Geraldo F. Oliveira, Ismail Emir Yüksel et al.HPCA 2024 · 22 citations
- BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect ThreadsOguzhan Canpolat, A. Giray Yaglikçi, Ataberk Olgun, Ismail Emir Yuksel et al.MICRO 2024 · 19 citations
- Variable Read Disturbance: An Experimental Analysis of Temporal Variation in DRAM Read DisturbanceAtaberk Olgun, F. Nisa Bostanci, Ismail Emir Yüksel, Oguzhan Canpolat et al.HPCA 2025 · 15 citations
- Siloz: Leveraging DRAM Isolation Domains to Prevent Inter-VM RowhammerKevin Loughlin, Jonah Rosenblum, Stefan Saroiu, Alec Wolman et al.SOSP 2023 · 13 citations
Builds on24
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
- DRAMA: Exploiting DRAM Addressing for Cross-CPU AttacksPeter Pessl, Daniel Gruss, Clémentine Maurice, Michael Schwarz et al.USENIX Security 2016 · 500 citations
- RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo et al.S&P 2019 · 408 citations
- Drammer: Deterministic Rowhammer Attacks on Mobile PlatformsVictor van der Veen, Yanick Fratantonio, Martina Lindorfer, Daniel Gruss et al.CCS 2016 · 381 citations
- Flip Feng Shui: Hammering a Needle in the Software StackKaveh Razavi, Ben Gras, Erik Bosman, Bart Preneel et al.USENIX Security 2016 · 306 citations
Related papers
- Exploiting Correcting Codes: On the Effectiveness of ECC Memory Against Rowhammer AttacksLucian Cojocar, Kaveh Razavi, Cristiano Giuffrida, Herbert BosS&P 2019 · 233 citations
- Memory Band-Aid: A Principled Rowhammer Defense-in-DepthCarina Fiedler, Jonas Juffinger, Sudheendra Raghav Neela, Martin Heckel et al.NDSS 2026 · 5 citations
- CSI:Rowhammer - Cryptographic Security and Integrity against RowhammerJonas Juffinger, Lukas Lamster, Andreas Kogler, Maria Eichlseder et al.S&P 2023
- CAn't Touch This: Software-only Mitigation against Rowhammer Attacks targeting Kernel MemoryFerdinand Brasser, Lucas Davi, David Gens, Christopher Liebchen et al.USENIX Security 2017 · 146 citations
- SafeGuard: Reducing the Security Risk from Row-Hammer via Low-Cost Integrity ProtectionAli Fakhrzadehgan, Yale N. Patt, Prashant J. Nair, Moinuddin K. QureshiHPCA 2022 · 51 citations
