diff options
| author | 2026-09-30 07:37:38 +0900 | |
|---|---|---|
| committer | 2026-10-21 08:55:21 +0900 | |
| commit | 0882f124ae329eefb66b00e63b9043f24c006b0e (patch) | |
| tree | a3eedafe249cbcf3dd985539e4d977a909ff9f73 /scripts/Makefile.thinlto | |
| parent | ksmbd: verify transform SessionId matches the decrypted header (diff) | |
ksmbd: disconnect on invalid encryption transform flags
MS-SMB2 3.3.5.2.1.1 requires the Flags/EncryptionAlgorithm field in an
SMB2 transform header to be 0x0001. The server must disconnect the
connection when it has any other value.
smb3_decrypt_req() currently ignores this field. A client with the
session key can therefore send a correctly authenticated encrypted
request with invalid flags and have it processed. Check the field
before looking up the session key or decrypting the request. The caller
aborts the connection when this check fails.
Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
