2007-04-26 01:53:07 +02:00
|
|
|
CVE-2007-0998 - remote compromise of dom0
|
|
|
|
|
|
|
|
Rather than completely disabling QEMU's console (which would remove
|
|
|
|
the "sendkey" command, among other useful things), remove all console
|
|
|
|
commands that can read/write dom0's state.
|
|
|
|
|
|
|
|
|
2009-08-01 11:53:46 +02:00
|
|
|
Index: xen-3.4.1-testing/tools/ioemu-remote/monitor.c
|
2007-04-26 01:53:07 +02:00
|
|
|
===================================================================
|
2009-08-01 11:53:46 +02:00
|
|
|
--- xen-3.4.1-testing.orig/tools/ioemu-remote/monitor.c
|
|
|
|
+++ xen-3.4.1-testing/tools/ioemu-remote/monitor.c
|
2009-05-04 18:38:09 +02:00
|
|
|
@@ -1481,6 +1481,7 @@ static const term_cmd_t term_cmds[] = {
|
2007-12-20 16:46:41 +01:00
|
|
|
"device|all", "commit changes to the disk images (if -snapshot is used) or backing files" },
|
2007-04-26 01:53:07 +02:00
|
|
|
{ "info", "s?", do_info,
|
|
|
|
"subcommand", "show various information about the system state" },
|
|
|
|
+#ifdef CONFIG_TRUSTED_CLIENT
|
|
|
|
{ "q|quit", "", do_quit,
|
|
|
|
"", "quit the emulator" },
|
|
|
|
{ "eject", "-fB", do_eject,
|
2009-05-04 18:38:09 +02:00
|
|
|
@@ -1493,6 +1494,7 @@ static const term_cmd_t term_cmds[] = {
|
2008-08-18 00:24:29 +02:00
|
|
|
"filename", "output logs to 'filename'" },
|
2007-04-26 01:53:07 +02:00
|
|
|
{ "log", "s", do_log,
|
2008-08-18 00:24:29 +02:00
|
|
|
"item1[,...]", "activate logging of the specified items to '/tmp/qemu.log'" },
|
2007-04-26 01:53:07 +02:00
|
|
|
+#endif
|
2007-12-20 16:46:41 +01:00
|
|
|
{ "savevm", "s?", do_savevm,
|
2008-08-18 00:24:29 +02:00
|
|
|
"tag|id", "save a VM snapshot. If no tag or id are provided, a new snapshot is created" },
|
|
|
|
{ "loadvm", "s", do_loadvm,
|
2009-05-04 18:38:09 +02:00
|
|
|
@@ -1522,12 +1524,14 @@ static const term_cmd_t term_cmds[] = {
|
2008-08-18 00:24:29 +02:00
|
|
|
"", "reset the system" },
|
|
|
|
{ "system_powerdown", "", do_system_powerdown,
|
2007-04-26 01:53:07 +02:00
|
|
|
"", "send system power down event" },
|
|
|
|
+#ifdef CONFIG_TRUSTED_CLIENT
|
2008-08-18 00:24:29 +02:00
|
|
|
{ "sum", "ii", do_sum,
|
2007-04-26 01:53:07 +02:00
|
|
|
"addr size", "compute the checksum of a memory region" },
|
|
|
|
{ "usb_add", "s", do_usb_add,
|
|
|
|
"device", "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')" },
|
|
|
|
{ "usb_del", "s", do_usb_del,
|
|
|
|
"device", "remove USB device 'bus.addr'" },
|
|
|
|
+#endif
|
2008-07-19 01:04:37 +02:00
|
|
|
#ifdef CONFIG_PHP_DEBUG
|
|
|
|
{ "pci_add", "s", do_pci_add,
|
|
|
|
"device", "insert PCI pass-through device by BDF,e.g. (dom, bus, dev, func) by hex '0x0, 0x3, 0x0, 0x0'" },
|
2009-05-04 18:38:09 +02:00
|
|
|
@@ -1542,6 +1546,7 @@ static const term_cmd_t term_cmds[] = {
|
2007-04-26 01:53:07 +02:00
|
|
|
"state", "change mouse button state (1=L, 2=M, 4=R)" },
|
2007-12-20 16:46:41 +01:00
|
|
|
{ "mouse_set", "i", do_mouse_set,
|
|
|
|
"index", "set which mouse device receives events" },
|
2007-04-26 01:53:07 +02:00
|
|
|
+#ifdef CONFIG_TRUSTED_CLIENT
|
|
|
|
#ifdef HAS_AUDIO
|
|
|
|
{ "wavcapture", "si?i?i?", do_wav_capture,
|
|
|
|
"path [frequency bits channels]",
|
2009-05-04 18:38:09 +02:00
|
|
|
@@ -1549,6 +1554,7 @@ static const term_cmd_t term_cmds[] = {
|
2007-04-26 01:53:07 +02:00
|
|
|
#endif
|
2009-05-04 18:38:09 +02:00
|
|
|
{ "stopcapture", "i", do_stop_capture,
|
|
|
|
"capture index", "stop capture" },
|
2007-04-26 01:53:07 +02:00
|
|
|
+#endif
|
2008-08-18 00:24:29 +02:00
|
|
|
{ "memsave", "lis", do_memory_save,
|
2007-12-20 16:46:41 +01:00
|
|
|
"addr size file", "save to disk virtual memory dump starting at 'addr' of size 'size'", },
|
2008-08-18 00:24:29 +02:00
|
|
|
{ "pmemsave", "lis", do_physical_memory_save,
|
2009-05-04 18:38:09 +02:00
|
|
|
@@ -1628,6 +1634,7 @@ static const term_cmd_t info_cmds[] = {
|
|
|
|
"", "show KVM information", },
|
2007-04-26 01:53:07 +02:00
|
|
|
{ "usb", "", usb_info,
|
|
|
|
"", "show guest USB devices", },
|
|
|
|
+#ifdef CONFIG_TRUSTED_CLIENT
|
|
|
|
{ "usbhost", "", usb_host_info,
|
|
|
|
"", "show host USB devices", },
|
|
|
|
{ "profile", "", do_info_profile,
|
2009-05-04 18:38:09 +02:00
|
|
|
@@ -1659,6 +1666,7 @@ static const term_cmd_t info_cmds[] = {
|
|
|
|
{ "migrate", "", do_info_migrate, "", "show migration status" },
|
|
|
|
{ "balloon", "", do_info_balloon,
|
|
|
|
"", "show balloon information" },
|
2007-04-26 01:53:07 +02:00
|
|
|
+#endif
|
|
|
|
{ NULL, NULL, },
|
|
|
|
};
|
|
|
|
|