summaryrefslogtreecommitdiff
path: root/sysutils/xenkernel3/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xenkernel3/patches/patch-ac')
-rw-r--r--sysutils/xenkernel3/patches/patch-ac18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/xenkernel3/patches/patch-ac b/sysutils/xenkernel3/patches/patch-ac
new file mode 100644
index 00000000000..f942f2e5373
--- /dev/null
+++ b/sysutils/xenkernel3/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.3.2.2 2011/03/30 19:10:59 tron Exp $
+
+CVE-2011-1166
+
+--- xen/arch/x86/domain.c.orig 2008-04-25 13:03:12.000000000 +0000
++++ xen/arch/x86/domain.c
+@@ -701,6 +701,11 @@ int arch_set_info_guest(
+
+ v->arch.guest_table_user = pagetable_from_pfn(cr3_pfn);
+ }
++ else if ( !(flags & VGCF_in_kernel) )
++ {
++ destroy_gdt(v);
++ return -EINVAL;
++ }
+ #endif
+ }
+ #ifdef CONFIG_COMPAT