Skip to contentSkip to conversation

[5921] target-i386: fix CVE-2007-1322

Qemu-devel Aurelien Jarno 1 participant 1 message Dec 7, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5921

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5921
Author:   aurel32
Date:     2008-12-07 18:15:36 +0000 (Sun, 07 Dec 2008)

Log Message:
-----------
target-i386: fix CVE-2007-1322

The icebp instruction can be abused to terminate the emulation, resulting in denial of service.

Modified Paths:
--------------
trunk/target-i386/translate.c

Modified: trunk/target-i386/translate.c
===================================================================

target-i386/translate.c +2 -0
@@ -6564,6 +6564,7 @@
         gen_jmp_im(pc_start - s->cs_base);
         gen_helper_into(tcg_const_i32(s->pc - pc_start));
         break;
+#ifdef WANT_ICEBP
     case 0xf1: /* icebp (undocumented, exits to external debugger) */
         gen_svm_check_intercept(s, pc_start, SVM_EXIT_ICEBP);
 #if 1
@@ -6574,6 +6575,7 @@
         cpu_set_log(CPU_LOG_INT | CPU_LOG_TB_IN_ASM);
 #endif
         break;
+#endif
     case 0xfa: /* cli */
         if (!s->vm86) {
             if (s->cpl <= s->iopl) {