summaryrefslogtreecommitdiff
path: root/kernel/kexec_file.c
diff options
context:
space:
mode:
authorHagar Gamal Halim Hemdan <hagarhem@amazon.com>2024-04-30 08:59:16 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-03 07:28:53 +0200
commit8003f00d895310d409b2bf9ef907c56b42a4e0f4 (patch)
tree5c02070102d4937d992cf6fb98a7f0e1356c5b1a /kernel/kexec_file.c
parent35230d31056d82a416bba881cceca420fc90d079 (diff)
vmci: prevent speculation leaks by sanitizing event in event_deliver()
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>
Diffstat (limited to 'kernel/kexec_file.c')
0 files changed, 0 insertions, 0 deletions