summaryrefslogtreecommitdiff
path: root/sysutils/xenkernel33/patches/patch-ac
blob: 381644aea37b9d69d8a0dd57a753fd93cc5abe71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ac,v 1.1.2.2 2011/03/30 19:10:59 tron Exp $

CVE-2011-1166

--- xen/arch/x86/domain.c.orig	2009-08-06 12:56:41.000000000 +0000
+++ xen/arch/x86/domain.c
@@ -680,6 +680,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