39134eb9d2
on invalid state load CVE-2013-4539-qemut-tsc210x-fix-buffer-overrun-on-invalid-state-load.patch - bsc#962632 - VUL-0: CVE-2015-1779: xen: vnc: insufficient resource limiting in VNC websockets decoder CVE-2015-1779-qemuu-limit-size-of-HTTP-headers-from-websockets-clients.patch CVE-2015-1779-qemuu-incrementally-decode-websocket-frames.patch - bsc#962642 - VUL-0: CVE-2013-4537: xen: ssi-sd: buffer overrun on invalid state load CVE-2013-4537-qemut-ssi-sd-fix-buffer-overrun-on-invalid-state-load.patch - bsc#962627 - VUL-0: CVE-2014-7815: xen: vnc: insufficient bits_per_pixel from the client sanitization CVE-2014-7815-qemut-vnc-sanitize-bits_per_pixel-from-the-client.patch - bsc#962335 - VUL-0: CVE-2013-4538: xen: ssd0323: fix buffer overun on invalid state CVE-2013-4538-qemut-ssd0323-fix-buffer-overun-on-invalid-state.patch - bsc#962360 - VUL-0: CVE-2015-7512: xen: net: pcnet: buffer overflow in non-loopback mode CVE-2015-7512-qemuu-net-pcnet-buffer-overflow-in-non-loopback-mode.patch CVE-2015-7512-qemut-net-pcnet-buffer-overflow-in-non-loopback-mode.patch - bsc#961692 - VUL-0: CVE-2016-1714: xen: nvram: OOB r/w access in processing firmware configurations CVE-2016-1714-qemuu-fw_cfg-add-check-to-validate-current-entry-value.patch CVE-2016-1714-qemut-fw_cfg-add-check-to-validate-current-entry-value.patch - bsc#961358 - VUL-0: CVE-2015-8613: xen: qemu: scsi: stack based buffer overflow in megasas_ctrl_get_info OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=395
45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
References: bsc#962627 CVE-2014-7815
|
|
|
|
Subject: vnc: sanitize bits_per_pixel from the client
|
|
From: Petr Matousek pmatouse@redhat.com Mon Oct 27 12:41:44 2014 +0100
|
|
Date: Tue Oct 28 11:51:04 2014 +0100:
|
|
Git: e6908bfe8e07f2b452e78e677da1b45b1c0f6829
|
|
|
|
bits_per_pixel that are less than 8 could result in accessing
|
|
non-initialized buffers later in the code due to the expectation
|
|
that bytes_per_pixel value that is used to initialize these buffers is
|
|
never zero.
|
|
|
|
To fix this check that bits_per_pixel from the client is one of the
|
|
values that the rfb protocol specification allows.
|
|
|
|
This is CVE-2014-7815.
|
|
|
|
Signed-off-by: Petr Matousek <pmatouse@redhat.com>
|
|
|
|
[ kraxel: apply codestyle fix ]
|
|
|
|
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
|
Index: xen-4.6.0-testing/tools/qemu-xen-traditional-dir-remote/vnc.c
|
|
===================================================================
|
|
--- xen-4.6.0-testing.orig/tools/qemu-xen-traditional-dir-remote/vnc.c
|
|
+++ xen-4.6.0-testing/tools/qemu-xen-traditional-dir-remote/vnc.c
|
|
@@ -1633,6 +1633,16 @@ static void set_pixel_format(VncState *v
|
|
return;
|
|
}
|
|
|
|
+ switch (bits_per_pixel) {
|
|
+ case 8:
|
|
+ case 16:
|
|
+ case 32:
|
|
+ break;
|
|
+ default:
|
|
+ vnc_client_error(vs);
|
|
+ return;
|
|
+ }
|
|
+
|
|
vs->clientds = vs->serverds;
|
|
vs->clientds.pf.rmax = red_max ? red_max : 0xFF;
|
|
count_bits(vs->clientds.pf.rbits, red_max);
|