]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: Check memopp before dereference (CVE-2016-8630)
authorOwen Hofmann <osh@google.com>
Thu, 27 Oct 2016 18:25:52 +0000 (11:25 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Nov 2016 20:31:53 +0000 (21:31 +0100)
commitbe69000fd595b0021e1636303b88ba8fbcce38b6
tree500459709e876c59ff397a7692b93f1e8854c162
parent9719e371a4f7f4f14cb22f53d49ad7192ae156ee
kvm: x86: Check memopp before dereference (CVE-2016-8630)

Commit 4f5ee7780a ("KVM: emulate: do not initialize memopp") removes a
check for non-NULL under incorrect assumptions. An undefined instruction
with a ModR/M byte with Mod=0 and R/M-5 (e.g. 0xc7 0x15) will attempt
to dereference a null pointer here.

Fixes: 4f5ee7780a8e229349a8b9366434959f76cbf56c
Message-Id: <1477592752-126650-2-git-send-email-osh@google.com>
Signed-off-by: Owen Hofmann <osh@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c