Files
linux-stable-mirror/fs
Namjae Jeon ab32ea3ad0 ksmbd: fix SMB 3.11 posix extension mount failure
commit 9ca8581e79 upstream.

cifs client set 4 to DataLength of create_posix context, which mean
Mode variable of create_posix context is only available. So buffer
validation of ksmbd should check only the size of Mode except for
the size of Reserved variable.

Fixes: 8f77150c15 ("ksmbd: add buffer validation for SMB2_CREATE_CONTEXT")
Cc: stable@vger.kernel.org # v5.15+
Reported-by: Steve French <smfrench@gmail.com>
Tested-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-11 09:10:26 +01:00
..
2022-02-08 18:34:04 +01:00
2021-12-22 09:32:45 +01:00
2021-11-18 19:16:48 +01:00
2021-12-29 12:28:59 +01:00
2021-12-22 09:32:48 +01:00
2021-11-25 09:48:46 +01:00
2021-11-25 09:49:08 +01:00
2021-12-14 10:57:15 +01:00