9b39a3d650
ne2000_receive() function CVE-2015-5278-qemut-Infinite-loop-in-ne2000_receive-function.patch - bsc#956832 - VUL-0: CVE-2015-8345: xen: qemu: net: eepro100: infinite loop in processing command block list CVE-2015-8345-qemuu-eepro100-infinite-loop-fix.patch CVE-2015-8345-qemut-eepro100-infinite-loop-fix.patch - bsc#964644 - VUL-0: CVE-2013-4533: xen pxa2xx: buffer overrun on incoming migration CVE-2013-4533-qemut-pxa2xx-buffer-overrun-on-incoming-migration.patch - bsc#964925 - VUL-0: CVE-2014-0222: xen: qcow1: validate L2 table size to avoid integer overflows CVE-2014-0222-blktap-qcow1-validate-l2-table-size.patch - Dropped CVE-2014-0222-qemuu-qcow1-validate-l2-table-size.patch - bsc#964415 - VUL-1: CVE-2016-2198: xen: usb: ehci null pointer dereference in ehci_caps_write CVE-2016-2198-qemuu-usb-ehci-null-pointer-dereference-in-ehci_caps_write.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=397
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
References: bsc#964415 CVE-2016-2198
|
|
|
|
USB Ehci emulation supports host controller capability registers.
|
|
But its mmio '.write' function was missing, which lead to a null
|
|
pointer dereference issue. Add a do nothing 'ehci_caps_write'
|
|
definition to avoid it; Do nothing because capability registers
|
|
are Read Only(RO).
|
|
|
|
Reported-by: Zuozhi Fzz <address@hidden>
|
|
Signed-off-by: Prasad J Pandit <address@hidden>
|
|
---
|
|
hw/usb/hcd-ehci.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
Index: xen-4.6.0-testing/tools/qemu-xen-dir-remote/hw/usb/hcd-ehci.c
|
|
===================================================================
|
|
--- xen-4.6.0-testing.orig/tools/qemu-xen-dir-remote/hw/usb/hcd-ehci.c
|
|
+++ xen-4.6.0-testing/tools/qemu-xen-dir-remote/hw/usb/hcd-ehci.c
|
|
@@ -899,6 +899,11 @@ static uint64_t ehci_caps_read(void *ptr
|
|
return s->caps[addr];
|
|
}
|
|
|
|
+static void ehci_caps_write(void *ptr, hwaddr addr,
|
|
+ uint64_t val, unsigned size)
|
|
+{
|
|
+}
|
|
+
|
|
static uint64_t ehci_opreg_read(void *ptr, hwaddr addr,
|
|
unsigned size)
|
|
{
|
|
@@ -2317,6 +2322,7 @@ static void ehci_frame_timer(void *opaqu
|
|
|
|
static const MemoryRegionOps ehci_mmio_caps_ops = {
|
|
.read = ehci_caps_read,
|
|
+ .write = ehci_caps_write,
|
|
.valid.min_access_size = 1,
|
|
.valid.max_access_size = 4,
|
|
.impl.min_access_size = 1,
|