]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: smbd: validate buffer descriptor structures
authorHyunchul Lee <hyc.lee@gmail.com>
Mon, 18 Dec 2023 15:32:43 +0000 (00:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:50 +0000 (10:41 +0100)
commit09b4c603831d7e482da66a4c6e41871370343d16
tree1c107e74994566ebb536c34de5416db7326af6e1
parent858b9644518f3b7b6e019fe5cebee15ff31eff04
ksmbd: smbd: validate buffer descriptor structures

[ Upstream commit 6d896d3b44cf64ab9b2483697e222098e7b72f70 ]

Check ChannelInfoOffset and ChannelInfoLength
to validate buffer descriptor structures.
And add a debug log to print the structures'
content.

Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/smb2pdu.c