diff options
author | Marios Makassikis <mmakassikis@freebox.fr> | 2023-01-11 17:39:02 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-01-20 22:27:49 +0100 |
commit | 5fde3c21cf33830eda7bfd006dc7f4bf07ec9fe6 (patch) | |
tree | 3d5df6cbe09ef210d9197ce71773aa4e908a0d6e /fs/proc/uptime.c | |
parent | ksmbd: add max connections parameter (diff) | |
download | linux-5fde3c21cf33830eda7bfd006dc7f4bf07ec9fe6.tar.xz linux-5fde3c21cf33830eda7bfd006dc7f4bf07ec9fe6.zip |
ksmbd: do not sign response to session request for guest login
If ksmbd.mountd is configured to assign unknown users to the guest account
("map to guest = bad user" in the config), ksmbd signs the response.
This is wrong according to MS-SMB2 3.3.5.5.3:
12. If the SMB2_SESSION_FLAG_IS_GUEST bit is not set in the SessionFlags
field, and Session.IsAnonymous is FALSE, the server MUST sign the
final session setup response before sending it to the client, as
follows:
[...]
This fixes libsmb2 based applications failing to establish a session
("Wrong signature in received").
Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Cc: stable@vger.kernel.org
Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/proc/uptime.c')
0 files changed, 0 insertions, 0 deletions