]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: Prevent overflow in KVM_GET_SUPPORTED_CPUID (CVE-2009-3638)
authorAvi Kivity <avi@redhat.com>
Sun, 4 Oct 2009 14:45:13 +0000 (16:45 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Nov 2009 00:52:26 +0000 (16:52 -0800)
commit997138858db742022a87db305136f7e44d50c3b1
treef1aaf8243f342bf30cfad3c1a0b010f221baf474
parentc10b1aca87daa6765146d251defa37e5c7109f15
KVM: Prevent overflow in KVM_GET_SUPPORTED_CPUID (CVE-2009-3638)

commit 6a54435560efdab1a08f429a954df4d6c740bddf upstream.

The number of entries is multiplied by the entry size, which can
overflow on 32-bit hosts.  Bound the entry count instead.

Reported-by: David Wagner <daw@cs.berkeley.edu>
Signed-off-by: Avi Kivity <avi@redhat.com>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/x86.c