From: Jan Kiszka Date: Wed, 7 Oct 2009 21:40:32 +0000 (-0400) Subject: KVM: x86: Disallow hypercalls for guest callers in rings > 0 [CVE-2009-3290] X-Git-Tag: v2.6.27.37~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c905930150d0952c4ce008553b377492bcbd29d7;p=pandora-kernel.git KVM: x86: Disallow hypercalls for guest callers in rings > 0 [CVE-2009-3290] [ backport to 2.6.27 by Chuck Ebbert ] commit 07708c4af1346ab1521b26a202f438366b7bcffd upstream. So far unprivileged guest callers running in ring 3 can issue, e.g., MMU hypercalls. Normally, such callers cannot provide any hand-crafted MMU command structure as it has to be passed by its physical address, but they can still crash the guest kernel by passing random addresses. To close the hole, this patch considers hypercalls valid only if issued from guest ring 0. This may still be relaxed on a per-hypercall base in the future once required. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity Cc: Chuck Ebbert Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed