News for hackers. Stuff that matters.
Re:Google says Rowhammer attacks are gaining range as RAM is... by campuscodi on Friday May 28, 2021 @02:45PM (#27319059)
Yes, Rowhammer can bypass ECC. Forgot to include this in the article, mainly because there's so much Rowhammer research.

See here: https://www.vusec.net/projects/eccploit/

Re:Google says Rowhammer attacks are gaining range as RAM is... by staticassertion on Friday May 28, 2021 @04:42PM (#27320237)
It's really worth noting that ECC does impact Rowhammer effectiveness, even if it is not enough to prevent the attack 100% of the time.
Re:Google says Rowhammer attacks are gaining range as RAM is... by GekkePrutser on Friday May 28, 2021 @05:36PM (#27320820)
But as part of this it'll also have a high chance of triggering a system shutdown due to ECC mismatch, right? So in most cases it can't be exploited for things other than DoS.
Re:Google says Rowhammer attacks are gaining range as RAM is... by staticassertion on Friday May 28, 2021 @05:49PM (#27320938)
ECC won't necessarily shut the system down as it can actually repair single bit errors, and mismatches can be monitored for as well. But your point stands - for an attacker to do damage they'll likely end up flipping bits in unintended ways first.
Re:Google says Rowhammer attacks are gaining range as RAM is... by CalChris on Friday May 28, 2021 @04:31PM (#27320127)
Can Rowhammer bypass ECC and not be detected by an hw_event_mc_err_type? I don't think so. Why would someone have ECC without a sufficiently sophisticated driver?
Re:Google says Rowhammer attacks are gaining range as RAM is... by chmod775 on Friday May 28, 2021 @04:44PM (#27320250)
> Can Rowhammer bypass ECC and not be detected by an hw_event_mc_err_type?

Afaik, yes it can (unless you're counting HW_EVENT_ERR_CORRECTED). They specifically try to get 1 or 3 bit flips, never 2.

See here: https://www.vusec.net/projects/eccploit/

(yes, that's the same link)

Re:Google says Rowhammer attacks are gaining range as RAM is... by a1369209993 on Friday May 28, 2021 @04:51PM (#27320344)
> Can Rowhammer bypass ECC and not be detected by an hw_event_mc_err_type?

It's definitely possible in theory. You'd need four bit flips rather than three, so you'd probably need more time between accesses to the victim row, but thats a quantitative improvement at best. This can be mitigated by using different ECC bit encodings per memory location[0], so hammered data, with correct ECC for its row, always has wrong ECC values for the adjacent rows, but I don't think anyone does that.

0: This is important in order to make fake ECC memory, which uses a (cheap) combinatoric circuit in place of a (more expensive) ninth DRAM chip, not work, so it should be happening even without Rowhammer, but AFAIK it isn't.

Re:Google says Rowhammer attacks are gaining range as RAM is... by marcan_42 on Saturday May 29, 2021 @01:20AM (#27323227)
We should be using memory encryption with random per-boot keys to prevent cold boot attacks, which would also solve the issue. Then the software doesn't know how its data maps to the encrypted data at the RAM. Rows may map 1:1, but you wouldn't know which bits you're targeting.
Re:Google says Rowhammer attacks are gaining range as RAM is... by a1369209993 on Saturday May 29, 2021 @04:02PM (#27327863)
Good point. Although memory encryption is much more useful if applied at the CPU rather than the memory controler (which would need a way to turn encryption off for DMA regions, since the memory controller doesn't know the key), there's no actual reason why you couldn't do it in the memory controller, if you trust all the hardware with DMA access, or (more plausibly) trust the memory controller to limit that access properly.
Re:Google says Rowhammer attacks are gaining range as RAM is... by danielheath on Friday May 28, 2021 @07:56PM (#27321899)
> Why would someone have ECC without a sufficiently sophisticated driver?

Have you, personally, tested your servers to make sure the driver correctly handles bit errors? Can't say I have.

Re:Google says Rowhammer attacks are gaining range as RAM is... by hedora on Friday May 28, 2021 @11:17PM (#27322762)
Last time I tested such things, they handled ECC correctly (x86 and arm).