summaryrefslogtreecommitdiff
path: root/fs/proc
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-07-05 09:12:30 +0200
commitf70ff737346744633e7b655c1fb23e1578491ff3 (patch)
treecbdf0bc47ed486eb4dccbbac7ccd488443b995c3 /fs/proc
parent4dfffb50316c761c59386c9b002a10ac6d7bb6c9 (diff)
downloadlinux-f70ff737346744633e7b655c1fb23e1578491ff3.tar.gz
linux-f70ff737346744633e7b655c1fb23e1578491ff3.tar.bz2
linux-f70ff737346744633e7b655c1fb23e1578491ff3.zip
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>
Diffstat (limited to 'fs/proc')
0 files changed, 0 insertions, 0 deletions