Bladeren bron

KVM: x86: Fix of previously incomplete fix for CVE-2014-8480

STR and SLDT with rip-relative operand can cause a host kernel oops.
Mark them as DstMem as well.

Cc: stable@vger.linux.org
Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Nadav Amit 10 jaren geleden
bovenliggende
commit
63ea0a49ae
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      arch/x86/kvm/emulate.c

+ 2 - 2
arch/x86/kvm/emulate.c

@@ -3791,8 +3791,8 @@ static const struct opcode group5[] = {
 };
 };
 
 
 static const struct opcode group6[] = {
 static const struct opcode group6[] = {
-	DI(Prot,	sldt),
-	DI(Prot,	str),
+	DI(Prot | DstMem,	sldt),
+	DI(Prot | DstMem,	str),
 	II(Prot | Priv | SrcMem16, em_lldt, lldt),
 	II(Prot | Priv | SrcMem16, em_lldt, lldt),
 	II(Prot | Priv | SrcMem16, em_ltr, ltr),
 	II(Prot | Priv | SrcMem16, em_ltr, ltr),
 	N, N, N, N,
 	N, N, N, N,