Files
linux/drivers/misc
Vishnu DASA 95688f33cb VMCI: Fix integer overflow in VMCI handle arrays
commit 1c2eb5b285 upstream.

The VMCI handle array has an integer overflow in
vmci_handle_arr_append_entry when it tries to expand the array. This can be
triggered from a guest, since the doorbell link hypercall doesn't impose a
limit on the number of doorbell handles that a VM can create in the
hypervisor, and these handles are stored in a handle array.

In this change, we introduce a mandatory max capacity for handle
arrays/lists to avoid excessive memory usage.

Signed-off-by: Vishnu Dasa <vdasa@vmware.com>
Reviewed-by: Adit Ranadive <aditr@vmware.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-14 08:09:51 +02:00
..
2017-11-15 18:21:04 -08:00
2018-08-21 23:54:18 -04:00
2019-02-21 23:15:10 +11:00
2019-07-14 08:09:51 +02:00
2017-08-28 16:55:48 +02:00
2019-02-18 09:46:43 +01:00
2018-04-23 13:31:27 +02:00