diff options
| author | 2025-10-22 15:27:47 +0900 | |
|---|---|---|
| committer | 2025-10-26 20:47:32 -0500 | |
| commit | 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0 (patch) | |
| tree | f5bef11181e818212eca4088fa3f5084cddd1f17 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | Linux 6.18-rc3 (diff) | |
| download | linux-rng-6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0.tar.xz linux-rng-6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0.zip | |
ksmbd: transport_ipc: validate payload size before reading handle
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
