Bug 512324 (CVE-2009-2287) - CVE-2009-2287 kernel: KVM: x86: check for cr3 validity in ioctl_set_sregs
Summary: CVE-2009-2287 kernel: KVM: x86: check for cr3 validity in ioctl_set_sregs
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2009-2287
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL: http://cve.mitre.org/cgi-bin/cvename....
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-17 10:32 UTC by Jan Lieskovsky
Modified: 2021-11-12 19:58 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-12-21 18:02:43 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.