mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
kvm: x86: use correct privilege level for sgdt/sidt/fxsave/fxrstor access
commit3c9fa24ca7upstream. The functions that were used in the emulation of fxrstor, fxsave, sgdt and sidt were originally meant for task switching, and as such they did not check privilege levels. This is very bad when the same functions are used in the emulation of unprivileged instructions. This is CVE-2018-10853. The obvious fix is to add a new argument to ops->read_std and ops->write_std, which decides whether the access is a "system" access or should use the processor's CPL. Fixes:129a72a0d3("KVM: x86: Introduce segmented_write_std", 2017-01-12) Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> [bwh: Backported to 3.16: Drop change in handle_ud()] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
b1632afd23
commit
c1eef5daec
3 changed files with 24 additions and 12 deletions
Loading…
Add table
Add a link
Reference in a new issue