]> git.ipfire.org Git - thirdparty/linux.git/commit
ksmbd: enforce signing required by the session
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 17 Jul 2026 02:32:00 +0000 (11:32 +0900)
committerSteve French <stfrench@microsoft.com>
Wed, 22 Jul 2026 14:54:03 +0000 (09:54 -0500)
commit2bebf2470af1a72f87754a5c7b21e86af32b9c8f
treee8ac065f4572d54b534327f66daf9974998323f1
parente148e567a9252643baa125cb65d7ae9c2c6cf68a
ksmbd: enforce signing required by the session

SMB2_FLAGS_SIGNED is controlled by the incoming request and only indicates
that a signature accompanies that request. Do not use it to decide whether a
signing-required session must authenticate the request.

Reject an unsigned plaintext request before dispatch when the session
requires signing. Continue to validate signatures on signed requests,
including when signing is optional. Encrypted requests have already been
authenticated during decryption.

An OPLOCK_BREAK acknowledgment is a session request and is subject to the
same signing rule, so do not exclude it from signed-request detection.

Reported-by: Charles Vosburgh <trilobyte777@gmail.com>
Tested-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/server.c
fs/smb/server/smb2pdu.c