summaryrefslogtreecommitdiffstats
path: root/net/l2tp
diff options
context:
space:
mode:
authorMarios Makassikis <mmakassikis@freebox.fr>2021-10-28 21:01:27 +0200
committerSteve French <stfrench@microsoft.com>2021-11-07 05:52:06 +0100
commit78f1688a64cca77758ceb9b183088cf0054bfc82 (patch)
treea27799c1a5e4940506b28be483d23c956e72a536 /net/l2tp
parentksmbd: Remove redundant 'flush_workqueue()' calls (diff)
downloadlinux-78f1688a64cca77758ceb9b183088cf0054bfc82.tar.xz
linux-78f1688a64cca77758ceb9b183088cf0054bfc82.zip
ksmbd: Fix buffer length check in fsctl_validate_negotiate_info()
The validate_negotiate_info_req struct definition includes an extra field to access the data coming after the header. This causes the check in fsctl_validate_negotiate_info() to count the first element of the array twice. This in turn makes some valid requests fail, depending on whether they include padding or not. Fixes: f7db8fd03a4b ("ksmbd: add validation in smb2_ioctl") Cc: stable@vger.kernel.org # v5.15 Acked-by: Namjae Jeon <linkinjeon@kernel.org> Acked-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'net/l2tp')
0 files changed, 0 insertions, 0 deletions