Bypassing On-Die ECC to Characterize DDR5 Rowhammer: ETH Zurich

Bypassing On-Die ECC to Characterize DDR5 Rowhammer


ETH Zurich and Google researchers develop a technique to bypass on-die ECC and characterize Rowhammer vulnerabilities in DDR5 memory, highlighting security challenges in next-generation DRAM.


Overview


In a collaborative effort, researchers from ETH Zurich and Google have demonstrated a method to bypass on-die Error Correction Code (ECC) in DDR5 memory, enabling the characterization of Rowhammer attacks in this newer standard. This work, presented at a recent security conference, sheds light on the evolving landscape of DRAM security and the effectiveness of built-in mitigations. As DDR5 adoption accelerates in 2026, understanding these vulnerabilities becomes critical for system designers and security professionals.


Background: Rowhammer and DDR5


Rowhammer is a hardware vulnerability where rapid, repeated accesses to a memory row cause bit flips in adjacent rows due to electrical interference. First discovered in DDR3, it has persisted through DDR4 and now DDR5. Memory manufacturers have introduced various mitigations, including on-die ECC, which corrects single-bit errors within the DRAM chip itself. However, on-die ECC was designed for reliability, not security, and researchers have questioned its effectiveness against Rowhammer.


DDR5, the latest DRAM standard, includes on-die ECC as a mandatory feature. While it improves data integrity, it also complicates the characterization of Rowhammer because bit flips are silently corrected, making them harder to observe. The ETH Zurich and Google team set out to overcome this obstacle.


Bypassing On-Die ECC


The researchers developed a novel technique to bypass on-die ECC by exploiting the ECC implementation's error reporting mechanisms. By carefully crafting access patterns and monitoring error correction events, they were able to infer the occurrence of bit flips even when they were corrected. This allowed them to map out Rowhammer vulnerability in DDR5 chips under realistic conditions.


Their method involves:


  • Error Injection and Observation: Inducing errors through Rowhammer and observing the ECC's correction behavior via side channels.
  • Timing Analysis: Using timing differences between corrected and uncorrected accesses to detect flips.
  • Pattern Optimization: Developing access patterns that maximize disturbance while evading ECC detection.

Key Findings


  • DDR5 chips from multiple manufacturers are susceptible to Rowhammer, despite on-die ECC.
  • The ECC can be bypassed or its correction can be observed, enabling reliable characterization.
  • The researchers identified specific patterns that induce bit flips with high probability.
  • They demonstrated the potential for privilege escalation and data corruption in systems using DDR5.

These findings underscore that on-die ECC is not a silver bullet for Rowhammer mitigation. While it raises the bar, determined attackers can still exploit the vulnerability.


Implications for 2026 and Beyond


As DDR5 becomes the dominant memory standard in servers, desktops, and mobile devices by 2026, the security community must address these risks. The research highlights the need for additional mitigations, such as:


  • Refresh Management: Techniques like Targeted Row Refresh (TRR) and other proprietary schemes.
  • System-Level Defenses: ECC in the memory controller, memory encryption, and access pattern monitoring.
  • Standard Evolution: Future DDR standards may incorporate stronger on-die ECC or other security features.

Conclusion


The ETH Zurich and Google study provides a crucial characterization of DDR5 Rowhammer, demonstrating that on-die ECC can be bypassed. As memory technology advances, continuous security research is essential to ensure robust protection against hardware vulnerabilities. System designers should consider layered defenses and stay informed about emerging threats.


For more details, refer to the full paper presented at the 2025 IEEE Symposium on Security and Privacy.

via Semiconductor Engineering

Related