Memory allocation diversity can delay RowHammer attacks
MAD can significantly delay RowHammer attacks, providing more time for mitigation
Security & privacy arXiv 11 Mar 2026 Defense Prototype evidence
Published as “MAD: Memory Allocation meets Software Diversity”
Why it matters
MAD makes it substantially harder for attackers to reliably allocate memory at a target physical location, potentially mitigating attacks like RowHammer, though benefits plateau after many allocations.
Summary
MAD reduces the rate at which unique physical memory blocks are allocated, improving attrition by 4.16× and raising the number of allocations needed to enumerate all 4 M blocks from ~77 B to ~294 B. In worst-case RowHammer scenarios the chance of an attacker forcing allocation to a vulnerable block is under 0.3% (often under 0.01%), so >99.5% of attempts fail. The evidence comes from a synthetic experiment of one billion allocations compared against a textbook buddy allocator; the paper does not provide real-world deployment data.
What they found 7
- MAD’s attrition rate is 0.3563 unique blocks per 25,000 allocations
“On average, MAD’s attrition rate is 0.3563 unique physical blocks per 25,000 allocations.”
- Baseline buddy allocator attrition rate is 1.4832 unique blocks per 25,000 allocations
“Our baseline buddy allocator’s attrition rate is 1.4832 unique physical blocks per 25,000 allocations.”
- MAD improves attrition rate by a factor of 4.16×
“MAD improves the attrition rate by a factor of 4.16×.”
- Enumeration of all 4 M blocks requires ~77 B allocations without MAD and ~294 B with MAD
“Extrapolated on the 4 million physical memory blocks present in a system with 16 GB of memory, complete enumeration of all memory blocks without MAD would require, on average, about 77 billion allocations. Using MAD, this number of allocations increases by an order of magnitude to an average of 294 billion allocations.”
- Probability of attacker success ranges between <0.3% and <0.01%
“The probability of success varies with the lower and upper bounds used to allocate memory blocks and ranges between less than 0.3% and less than 0.01%.”
- More than 99.5% of the times an adversary will not succeed to force allocation to a target location
“more than 99.5% of the times, an adversary will not succeed to predictably force allocation into the target location.”
- Maximum block recycling frequencies differ by a factor of four between MAD and the buddy allocator
“The maximum block recycling frequencies between MAD and the buddy allocator differ by a factor of four.”
Caveats 6
- for over 900 million allocations, MAD did not yield substantially more blocks.
- Figure 3 indicates that after a billion allocations we have merely allocated about 70,000 of a total of about 4 million blocks.
- Note that the average and median number of required allocations differ substantially. This difference is due to the probabilistic nature of MAD: sometimes pages required for an attack get moved to a shadow cache or recycled to higher orders via vertical diversity.
- Due to randomizing initialization and refilling (see Section IV), we were not able to put a specific block into MAD’s allocation caches and, therefore, had to resort to choose a random block of order six and designate it as a vulnerable page.
- MAD is hardware agnostic, and does not actually carry any specific information about physical-to-DRAM address mapping.
- The resulting Python implementation uses roughly a thousand lines of code.
What’s new here 4
- Applies software diversity to memory allocation to reduce block recycling
- Quantifies attrition rate improvement over a textbook buddy allocator
- Evaluates attacker success probability for RowHammer under randomization
- Provides a Python prototype for parameter exploration