summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2026-10-26 13:13:56 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-26 19:15:39 +0900
commit19f8fd6b5ced33b02a083759e6901f9d6e8076df (patch)
treee0c8c24b961fce1bc7d3639ab4182f73da71fdf4 /scripts/basic
parent1f5ce2b8b9164b3fcb93a18fe1e7b451c2fc6eea (diff)
downloadlinux-19f8fd6b5ced33b02a083759e6901f9d6e8076df.tar.gz
linux-19f8fd6b5ced33b02a083759e6901f9d6e8076df.zip
ksmbd: prevent session binding in compound requests
A failed multichannel binding can retain its target session on the work item so that the error response can be signed. Subsequent compound commands can then use that session together with a tree connection left over from an earlier command. Limit binding SESSION_SETUP requests to standalone messages during message validation, before smb2_sess_setup() can replace work->sess. Check both NextCommand and the current request offset to cover binding in the first, middle and last positions of a compound. The existing validation error path returns STATUS_INVALID_PARAMETER and stops processing the remaining commands. This intentionally limits support for compounded binding. It is not a protocol requirement that binding be standalone. Standalone binding and non-binding compounds retain their existing behavior, without changing session, tree or response encryption handling. Fixes: 4b706360ffb7 ("ksmbd: fix multichannel binding and enforce channel limit") Cc: stable@vger.kernel.org Reported-by: Zeng Adolph <coderzeng@hotmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions