Bug 512324 (CVE-2009-2287)

Summary: CVE-2009-2287 kernel: KVM: x86: check for cr3 validity in ioctl_set_sregs
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: cebbert, davej, rcvalle, somekool
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2287
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-21 18:02:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Lieskovsky 2009-07-17 10:32:52 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2009-2287 to
the following vulnerability:

The kvm_arch_vcpu_ioctl_set_sregs function in the KVM in Linux kernel 2.6 before 2.6.30, when running on x86 systems, does not validate the page table root in a KVM_SET_SREGS call, which allows local users to cause a denial of service (crash or hang) via a crafted cr3 value, which triggers a NULL pointer dereference in the gfn_to_rmap function. 

References:
http://www.openwall.com/lists/oss-security/2009/06/30/1
http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git;a=blob;f=queue-2.6.30/kvm-x86-check-for-cr3-validity-in-ioctl_set_sregs.patch;h=b48a47dad2cf76358b327368f80c0805e6370c68;
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=59839dfff5eabca01cc4e20b45797a60a80af8cb
http://sourceforge.net/tracker/?func=detail&atid=893831&aid=2687641&group_id=180599
http://bugs.gentoo.org/show_bug.cgi?id=277375

Comment 1 Jan Lieskovsky 2009-07-17 10:34:09 UTC
This issue affects current version in F10 (kernel-2.6.29.6-93.fc10), F11
(kernel-2.6.29.6-213.fc11) not checked.

Comment 2 Mathieu Jobin 2010-03-19 13:11:37 UTC
just a guess by looking at the patch ... 


can't it have a similar problem with cr2 ?


http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=59839dfff5eabca01cc4e20b45797a60a80af8cb