Branch Privilege Injection: Exploiting branch predictor race conditions
A race condition in Intel branch predictors allows branch predictor updates to be associated with the wrong privilege domain when a privilege switch or IBPB occurs, breaking eIBRS and IBPB mitigations. An attacker can leak arbitrary kernel or hypervisor memory at 5.6 KiB/s on an up-to-date Ubuntu system with default mitigations.
comsec.ethz.ch
Published on comsec.ethz.ch
Branch Privilege Injection (CVE-2024-45332) brings back the full might of branch target injection attacks (Spectre-BTI) on Intel. Intel’s hardware mitigations against these types of attacks have held their ground for almost 6 years.
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 insufficient synchronisation between the branch predictor and the instruction stream during privilege switches or IBPB, so in-flight predictor updates are misattributed to the new security domain.
Impact
An attacker could leak arbitrary memory from a more privileged domain, such as kernel or hypervisor memory, at 5.6 KiB/s on an up-to-date Ubuntu 24.04 with all default mitigations enabled.
What the attacker needed
Intel CPU (9th gen or later); Ability to run code on the target system; Linux (for the proof-of-concept)
The fix
Intel developed a microcode update that stops the detection primitives, and users should install the latest operating system and BIOS updates.
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.
Modern processors guess which code will run next to speed things up, using a component called the branch predictor. This report shows that on some Intel chips, the predictor can be tricked into mixing up guesses from different security levels, letting a program read memory it should not be able to see, such as kernel memory.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.