Row Hammer: How Reading DRAM Fast Enough Flips Bits in Neighboring Rows

2026-07-14

DRAM stores bits as charge on tiny capacitors. Every read or refresh cycle briefly activates a row's wordline, which couples capacitively to physically adjacent wordlines. Normally the disturbance is negligible — refresh (every 64ms) tops the cells back up before charge leaks past the sense-amp threshold. But if you hammer a single row tens of thousands of times within one refresh window, the accumulated coupling drains enough charge from neighbor cells to flip a bit before refresh saves them.

The physics: Each wordline activation pulses ~1V. Adjacent wordlines see maybe 10-50mV of coupled noise per activation. That noise slightly disturbs the storage capacitor via the pass-transistor's gate leakage and subthreshold conduction. One hammer is invisible; 100,000 hammers in 64ms shifts a "1" cell (~1V stored) below the sense amp's decision threshold (~0.5V).

The classic exploit pattern (double-sided hammer):

Rule of thumb: Vulnerable DDR3 modules (2012-era, ~30nm process) flipped bits after roughly 139,000 activations per refresh interval. Sub-20nm DDR4 is worse, not better — cell capacitance shrank faster than coupling isolation improved. Some DDR4 parts flip after only 10,000-20,000 activations.

Real-world case: Google's Project Zero (2015) turned Row Hammer into a privilege escalation on Linux. By hammering DRAM near a page table entry, they flipped a bit in a PTE, converting a read-only user page mapping into one pointing to attacker-controlled memory — game over. This wasn't a software bug; it was DRAM physics defeating memory protection.

Mitigations:

Row Hammer is the poster child for abstraction leaks: memory looked like a perfect array of bits, until you pounded it hard enough to see the transistors underneath.

See it in action: Check out Everyone Mocked the Boy, Until He Awakened a Starship System and Built a Powerful Fleet From Scrap! by Bella's Comic Chronicles to see this theory applied.
Key Takeaway: DRAM cells aren't isolated — hammering one wordline capacitively disturbs its neighbors, and modern process shrinks made this a security problem, not just a reliability one.

All newsletters