Hacker News new | ask | show | jobs
by RachelF 4 days ago
Lots of details missing, though: How did they go from being able to rewrite just one byte in kernel memory to arbitrary code execution?
1 comments

The exploit discloses up to 64 bytes of kernel stack, and allows the attacker to zero (IIUC) the two least significant bits at any arbitrary offset. So you can, in essence, re-target a pointer to attacker-controlled data. My understanding is they forged some internal structures to amplify that two-bit write into a more powerful write primitive.
This seems like memory grooming and needing to know virtual locations before the attack.
I don't have their POC available to me but if you can read 64 bytes of the stack that might be enough. ASLR and PIE doesn't hinder you if you're dealing with offsets within the same memory page, and based on the mailing list discussion the attack relies upon overwriting nearby fields in the same struct so there's unlikely to be much guessing involved.