diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2022-01-22 04:47:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-11 11:26:32 +0300 |
commit | 4b7c8ddd4bed0eb13d0e7b1e8996c0a67f523ecc (patch) | |
tree | 50b0868433f3f5d07395b345a8bcdaf3945c3e16 /lib/Kconfig.kcsan | |
parent | 8c68c50109c22502b647f4e86ec74400c7a3f6e0 (diff) | |
download | linux-4b7c8ddd4bed0eb13d0e7b1e8996c0a67f523ecc.tar.xz |
ksmbd: fix SMB 3.11 posix extension mount failure
commit 9ca8581e79e51c57e60b3b8e3b89d816448f49fe 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: 8f77150c15f8 ("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>
Diffstat (limited to 'lib/Kconfig.kcsan')
0 files changed, 0 insertions, 0 deletions