]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
KVM: VMX: remove I/O port 0x80 bypass on Intel hosts
authorAndrew Honig <ahonig@google.com>
Fri, 1 Dec 2017 18:21:09 +0000 (10:21 -0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Tue, 5 Dec 2017 21:32:51 +0000 (22:32 +0100)
commitd59d51f088014f25c2562de59b9abff4f42a7468
tree5e186a0e14f92d425d591da99185a33b1b8a6b3c
parent6ab0b9feb82a7ac09956e6761fec73cd47789df5
KVM: VMX: remove I/O port 0x80 bypass on Intel hosts

This fixes CVE-2017-1000407.

KVM allows guests to directly access I/O port 0x80 on Intel hosts.  If
the guest floods this port with writes it generates exceptions and
instability in the host kernel, leading to a crash.  With this change
guest writes to port 0x80 on Intel will behave the same as they
currently behave on AMD systems.

Prevent the flooding by removing the code that sets port 0x80 as a
passthrough port.  This is essentially the same as upstream patch
99f85a28a78e96d28907fe036e1671a218fee597, except that patch was
for AMD chipsets and this patch is for Intel.

Signed-off-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Fixes: fdef3ad1b386 ("KVM: VMX: Enable io bitmaps to avoid IO port 0x80 VMEXITs")
Cc: <stable@vger.kernel.org>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c