kernel_samsung_a53x/drivers/misc/vmw_vmci
Hagar Gamal Halim Hemdan 140bbed30a vmci: prevent speculation leaks by sanitizing event in event_deliver()
commit 8003f00d895310d409b2bf9ef907c56b42a4e0f4 upstream.

Coverity spotted that event_msg is controlled by user-space,
event_msg->event_data.event is passed to event_deliver() and used
as an index without sanitization.

This change ensures that the event index is sanitized to mitigate any
possibility of speculative information leaks.

This bug was discovered and resolved using Coverity Static Analysis
Security Testing (SAST) by Synopsys, Inc.

Only compile tested, no access to HW.

Fixes: 1d990201f9bb ("VMCI: event handling implementation.")
Cc: stable <stable@kernel.org>
Signed-off-by: Hagar Gamal Halim Hemdan <hagarhem@amazon.com>
Link: https://lore.kernel.org/stable/20231127193533.46174-1-hagarhem%40amazon.com
Link: https://lore.kernel.org/r/20240430085916.4753-1-hagarhem@amazon.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 14:19:04 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_context.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_context.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_datagram.c VMCI: Fix possible memcpy() run-time warning in vmci_datagram_invoke_guest_handler() 2024-11-19 09:23:15 +01:00
vmci_datagram.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_doorbell.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_doorbell.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_driver.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_driver.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_event.c vmci: prevent speculation leaks by sanitizing event in event_deliver() 2024-11-19 14:19:04 +01:00
vmci_event.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_guest.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_handle_array.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_handle_array.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_queue_pair.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_queue_pair.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_resource.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_resource.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_route.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmci_route.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00