]> git.proxmox.com Git - mirror_qemu.git/commit
input: limit kbd queue depth
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 28 Apr 2017 08:42:37 +0000 (10:42 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 24 Aug 2017 23:07:25 +0000 (18:07 -0500)
commitf8d050a20a40113a6b6945fa364b655a6a327ac8
tree4895ff9ac182a72c088e26b2dba1f178c5a8dc13
parent9527514ceb2383f269927cf81e604597078a0684
input: limit kbd queue depth

Apply a limit to the number of items we accept into the keyboard queue.

Impact: Without this limit vnc clients can exhaust host memory by
sending keyboard events faster than qemu feeds them to the guest.

Fixes: CVE-2017-8379
Cc: P J P <ppandit@redhat.com>
Cc: Huawei PSIRT <PSIRT@huawei.com>
Reported-by: jiangxin1@huawei.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20170428084237.23960-1-kraxel@redhat.com
(cherry picked from commit fa18f36a461984eae50ab957e47ec78dae3c14fc)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
ui/input.c