diff options
| author | Qianchang Zhao <pioooooooooip@gmail.com> | 2025-10-22 15:27:47 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-29 14:04:43 +0100 |
| commit | a02e432d5130da4c723aabe1205bac805889fdb2 (patch) | |
| tree | 25ac12c9f0f2358f9df946d8733570fa429916e3 /drivers/power | |
| parent | b83ce5c9cbd837cf46c72087bb06beff93ee580e (diff) | |
| download | linux-a02e432d5130da4c723aabe1205bac805889fdb2.tar.gz linux-a02e432d5130da4c723aabe1205bac805889fdb2.tar.bz2 linux-a02e432d5130da4c723aabe1205bac805889fdb2.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/power')
0 files changed, 0 insertions, 0 deletions
