8292994238
logging upon guest changing callback method (XSA-169) 5677f350-x86-make-debug-output-consistent-in-hvm_set_callback_via.patch - bsc#959387 - VUL-0: CVE-2015-8568 CVE-2015-8567: xen: qemu: net: vmxnet3: host memory leakage CVE-2015-8568-qemuu-net-vmxnet3-avoid-memory-leakage-in-activate_device.patch - bsc#957988 - VUL-0: CVE-2015-8550: xen: paravirtualized drivers incautious about shared memory contents (XSA-155) xsa155-xen-0001-xen-Add-RING_COPY_REQUEST.patch xsa155-xen-0002-blktap2-Use-RING_COPY_REQUEST.patch xsa155-xen-0003-libvchan-Read-prod-cons-only-once.patch xsa155-qemuu-qdisk-double-access.patch xsa155-qemut-qdisk-double-access.patch xsa155-qemuu-xenfb.patch xsa155-qemut-xenfb.patch - bsc#959006 - VUL-0: CVE-2015-8558: xen: qemu: usb: infinite loop in ehci_advance_state results in DoS CVE-2015-8558-qemuu-usb-infinite-loop-in-ehci_advance_state-results-in-DoS.patch - bsc#958918 - VUL-0: CVE-2015-7549: xen: qemu pci: null pointer dereference issue CVE-2015-7549-qemuu-pci-null-pointer-dereference-issue.patch - bsc#958493 - VUL-0: CVE-2015-8504: xen: qemu: ui: vnc: avoid floating point exception CVE-2015-8504-qemuu-vnc-avoid-floating-point-exception.patch CVE-2015-8504-qemut-vnc-avoid-floating-point-exception.patch - bsc#958007 - VUL-0: CVE-2015-8554: xen: qemu-dm buffer overrun in MSI-X handling (XSA-164) xsa164.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=393
44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
References: bsc#957988
|
|
|
|
xenfb: avoid reading twice the same fields from the shared page
|
|
|
|
Reading twice the same field could give the guest an attack of
|
|
opportunity. In the case of event->type, gcc could compile the switch
|
|
statement into a jump table, effectively ending up reading the type
|
|
field multiple times.
|
|
|
|
This is part of XSA-155.
|
|
|
|
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
|
|
|
|
|
|
Index: xen-4.6.0-testing/tools/qemu-xen-dir-remote/hw/display/xenfb.c
|
|
===================================================================
|
|
--- xen-4.6.0-testing.orig/tools/qemu-xen-dir-remote/hw/display/xenfb.c
|
|
+++ xen-4.6.0-testing/tools/qemu-xen-dir-remote/hw/display/xenfb.c
|
|
@@ -779,18 +779,20 @@ static void xenfb_invalidate(void *opaqu
|
|
|
|
static void xenfb_handle_events(struct XenFB *xenfb)
|
|
{
|
|
- uint32_t prod, cons;
|
|
+ uint32_t prod, cons, out_cons;
|
|
struct xenfb_page *page = xenfb->c.page;
|
|
|
|
prod = page->out_prod;
|
|
- if (prod == page->out_cons)
|
|
+ out_cons = page->out_cons;
|
|
+ if (prod == out_cons)
|
|
return;
|
|
xen_rmb(); /* ensure we see ring contents up to prod */
|
|
- for (cons = page->out_cons; cons != prod; cons++) {
|
|
+ for (cons = out_cons; cons != prod; cons++) {
|
|
union xenfb_out_event *event = &XENFB_OUT_RING_REF(page, cons);
|
|
+ uint8_t type = event->type;
|
|
int x, y, w, h;
|
|
|
|
- switch (event->type) {
|
|
+ switch (type) {
|
|
case XENFB_TYPE_UPDATE:
|
|
if (xenfb->up_count == UP_QUEUE)
|
|
xenfb->up_fullscreen = 1;
|