Cross-Process Spectre Exploitation
The author found that on Intel Golden Cove and Raptor Cove, an Indirect Branch Prediction Barrier (IBPB) fails to clear certain return-target predictions because of a microcode bug, so a prediction survives across the barrier. This lets an attacker leak data across a process context switch using a Spectre-style side channel, even though IBPB is meant to stop exactly that.
grsecurity.net
Published on grsecurity.net
I will walk through a cross-process Spectre attack I developed, partly while interning at Open Source Security, Inc.
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 a microcode defect in Intel Golden Cove and Raptor Cove that fails to invalidate return-target predictions held in the indirect branch predictor when an IBPB is executed.
Impact
An attacker could leak data across a process context switch despite IBPB being in use, though the write-up notes most user programs do not enable IBPB at all and Intel has since patched the issue in a microcode update.
What the attacker needed
Attacker and victim share a CPU core; ability to run code on the same machine; affected Intel Golden Cove or Raptor Cove CPU
The fix
Intel released a microcode update that addresses the incomplete IBPB, and software authors of sensitive programs are encouraged to enable IBPB as well.
How it was found
- Train an indirect branch or return so the predictor learns a target near the attacker's chosen address.
- Trigger an IBPB, for example via the prctl speculation-control interface or a kernel module.
- Run the victim branch and use Flush+Reload to see which target was predicted.
- Observe that the IP-based return prediction still produces signal after the IBPB.
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.
A processor guesses which way a branch will go so it can keep working ahead of time; this guessing is called branch prediction. A special instruction called IBPB is supposed to wipe those guesses when the operating system switches from one program to another, so one program cannot influence another. The author shows that on some Intel chips a buggy microcode update leaves some guesses in place, so a malicious program can still steer a victim program's guessing and read its data through timing.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.