I'd like to know (or at least perform some reasonable guess) if a RAM is vulnerable to rowhammer attack. I haven't found any list of vulnerable or secure RAM modules. I've seen some general rules (DDR4 is OK, ECC is some mitigation factor), but I can apply none of these.

It is OK to buy a module, test it and return it if it is not OK. But I don't want to do that, say, ten times.

1 Answer 1


For DDR4:

One DRAM manufacturer, Micron, indicated that they are putting rowhammer mitigations into some of their DDR4 DRAM (see this data sheet). Other manufacturers might be doing the same.

Note that it is not necessarily true that "DDR4 is OK". There's nothing in the DDR4 standard that makes DDR4 memory safer than DDR3 memory -- the DDR4 standard does not contain any rowhammer mitigation features. If DDR4 memory is safer, that would only be because manufacturers are being more careful about their newer memory, such as by implementing rowhammer mitigations internally within the DRAM modules.

For DDR3:

As far as I know, there are no public lists, either official or unofficial, of which DDR3 DRAM parts have the rowhammer fault and which don't. The DRAM manufacturers haven't published any lists, and no-one has compiled any unofficial lists yet.

You could try asking DRAM manufacturers directly, but I don't know how helpful they would be.

If you pick a DRAM module that you're considering buying, you could try looking up the part number on the manufacturer's web site. In some cases, you can get the SPD data for the module. There's a "MAC" (Maximum Activation Count) field in the SPD data. If MAC="Unlimited", that's supposed to mean "known to be rowhammer-free". However, the status of this MAC field in the DDR standards is not really clear. (For some background, see this post.)

  • 1
    Hmm, DDR4 is said to contain some mitigation through TRR – see en.wikipedia.org/wiki/Row_hammer#Mitigation . After asking this question and subsequent waiting, I've just tried to buy some RAM and test it. It should arrive today.
    – v6ak
    Commented Aug 24, 2015 at 8:45
  • Unfortunately, while this might be valid, it seems to be very hard to find those results. Maybe date of RAM release will help.
    – v6ak
    Commented Aug 31, 2015 at 16:58
  • The article en.wikipedia.org/wiki/Row_hammer#Mitigation does not actually cite any sources that say that the DDR4 standard includes TRR, so you should treat the article's claim with scepticism. Commented Sep 1, 2015 at 17:51
  • How hard would it be for a motherboard to include a simple "address scrambling" circuit whose parameters were set by the BIOS on startup and not otherwise software accessible? Even something as simple as a 4x16 RAM which held four values (selected using bits 0-1 of the row number) that would be xor'ed with the row number fed to the DRAM would seem to make it impossible for software to know what addresses would map to rows above and below a row of interest.
    – supercat
    Commented Sep 9, 2015 at 21:20
  • 3
    According to researchers, "110 out of 129 DDR3 models and eight out of 12 DDR4 varieties" which were tested were vulnerable to Rowhammer. So "DDR4 is 75% not OK" seems to be closer to the truth.
    – l0b0
    Commented Sep 2, 2016 at 12:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .