android_kernel_samsung_a7y1.../drivers/misc/vmw_vmci
Vishnu DASA 177268397d VMCI: Fix integer overflow in VMCI handle arrays
commit 1c2eb5b2853c9f513690ba6b71072d8eb65da16a 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>
2020-04-06 19:30:20 +02:00
..
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_context.c VMCI: Fix integer overflow in VMCI handle arrays 2020-04-06 19:30:20 +02:00
vmci_context.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_datagram.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_datagram.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_doorbell.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_doorbell.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_driver.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_driver.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_event.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_guest.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_handle_array.c VMCI: Fix integer overflow in VMCI handle arrays 2020-04-06 19:30:20 +02:00
vmci_handle_array.h VMCI: Fix integer overflow in VMCI handle arrays 2020-04-06 19:30:20 +02:00
vmci_host.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_queue_pair.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_queue_pair.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_resource.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_resource.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_route.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmci_route.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30