XEN x86: Privilege escalation in PV guests
The PV pagetable code had fast-paths for updating existing pagetable entries that skipped re-validation, but the bits considered safe were too broad and not actually safe. A malicious PV guest administrator could escalate their privilege to that of the host.
xenbits.xen.org
Published on xenbits.xen.org
CVE(s) | CVE-2016-6258 |
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
Impact
A malicious PV guest administrator could escalate their privilege to that of the host; only PV guests on x86 hardware are exposed, while HVM and ARM guests are not.
What the attacker needed
PV guest on x86 hardware; guest administrator privileges
The fix
Applying the appropriate attached patch resolves this issue.
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.
Xen is a hypervisor that lets multiple virtual machines (guests) run on one physical host. In paravirtualised (PV) guests, the guest kernel manages its own page tables but Xen validates updates for safety. A shortcut in that validation let a guest administrator change memory mappings in a way that should have been blocked, potentially taking control of the host.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.