Slashdot Mirror


Exploiting the DRAM Rowhammer Bug To Gain Kernel Privileges

New submitter netelder sends this excerpt from the Project Zero blog: 'Rowhammer' is a problem with some recent DRAM devices in which repeatedly accessing a row of memory can cause bit flips in adjacent rows. We tested a selection of laptops and found that a subset of them exhibited the problem. We built two working privilege escalation exploits that use this effect. One exploit uses rowhammer-induced bit flips to gain kernel privileges on x86-64 Linux when run as an unprivileged userland process. When run on a machine vulnerable to the rowhammer problem, the process was able to induce bit flips in page table entries (PTEs). It was able to use this to gain write access to its own page table, and hence gain read-write access (PDF) to all of physical memory.

3 of 180 comments (clear)

  1. Impressive by Anonymous Coward · · Score: 5, Insightful

    Don't have much more to say than that's an impressive exploit.

    1. Re:Impressive by twistedcubic · · Score: 3, Insightful

      Double bonus if this result gets manufacturers of laptops to FINALLY include ECC memory.

  2. Re: ECC Memory by Bruce+Perens · · Score: 4, Insightful

    It has yet to be established whether hammer techniques can result in a correct data+ECC pattern. If so, it should be possible to permute the memory in a way that defeats this, either on the memory module or the memory controller.

    That would make a good research paper for someone.