summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorQianchang Zhao <pioooooooooip@gmail.com>2025-10-22 15:27:47 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-29 14:09:02 +0100
commit898d527ed94c19980a4d848f10057f1fed578ffb (patch)
treee44915eaef8d83d7776de2043eb64f8faae28d85 /drivers/input
parent1dae549ef5dd66c60a0e41122f5d0b6cdd9910b5 (diff)
downloadlinux-898d527ed94c19980a4d848f10057f1fed578ffb.tar.gz
linux-898d527ed94c19980a4d848f10057f1fed578ffb.tar.bz2
linux-898d527ed94c19980a4d848f10057f1fed578ffb.zip
ksmbd: transport_ipc: validate payload size before reading handle
commit 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0 upstream. handle_response() dereferences the payload as a 4-byte handle without verifying that the declared payload size is at least 4 bytes. A malformed or truncated message from ksmbd.mountd can lead to a 4-byte read past the declared payload size. Validate the size before dereferencing. This is a minimal fix to guard the initial handle read. Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers") Cc: stable@vger.kernel.org Reported-by: Qianchang Zhao <pioooooooooip@gmail.com> Signed-off-by: Qianchang Zhao <pioooooooooip@gmail.com> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions