Flip Feng Shui: A new cross-VM exploitation vector
Flip Feng Shui is a cross-VM attack that uses Rowhammer bit flips and memory deduplication to corrupt a victim VM's memory. The authors demonstrate breaking OpenSSH public key authentication and compromising apt-get to install backdoored packages.
vusec.net
Published on vusec.net
Flip Feng Shui (FFS) is a new exploitation vector that allows an attacker virtual machine (VM) to flip a bit in a memory page of a victim VM that runs on the same host as the attacker VM. FFS relies on a hardware vulnerability for flipping a bit and a physical memory massaging primitive to land a victim page on…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the combination of Rowhammer-induced bit flips in DRAM and memory deduplication that merges identical pages across VMs, allowing an attacker to target and corrupt a victim's memory page.
Impact
An attacker could break OpenSSH public key authentication and compromise apt-get to install tampered packages, but the attack requires specific hardware and memory deduplication to be enabled.
What the attacker needed
Attacker VM on same host as victim; memory deduplication enabled; Rowhammer-vulnerable DRAM
The fix
Disable memory deduplication (known as Kernel Same-page Merging, Transparent Page Sharing, or Content-based Deduplication) to prevent the attack.
How it was found
- The attacker VM profiles its memory to find memory cells vulnerable to Rowhammer.
- The attacker writes a memory page that she knows exists in the victim on the vulnerable memory location, and memory deduplication merges the pages.
- If the attacker's physical memory backs both pages, the attacker triggers Rowhammer to modify the victim's memory.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a research paper about a way for one virtual machine (a software-based computer running on shared hardware) to interfere with another virtual machine on the same physical host. By exploiting a hardware flaw called Rowhammer (where rapid memory access causes bits to flip) and a memory-saving feature called deduplication (where identical memory pages are shared), an attacker can change data in the victim's memory. The authors show they can use this to bypass SSH key authentication and trick the package manager into installing malicious software.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.