]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: fix invalid request buffer access in compound
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 24 Sep 2021 00:24:08 +0000 (09:24 +0900)
committerSteve French <stfrench@microsoft.com>
Sun, 26 Sep 2021 21:47:14 +0000 (16:47 -0500)
commit536632c4cfc7c98ca6047bdd64cd203d4dcd2016
treed98701863d3afdc4359fe015ac1a89d0fd081cf3
parentaacbf9dea981a5c682a129157d1e04b6c03032eb
ksmbd: fix invalid request buffer access in compound

Ronnie reported invalid request buffer access in chained command when
inserting garbage value to NextCommand of compound request.
This patch add validation check to avoid this issue.

Cc: Tom Talpey <tom@talpey.com>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Ralph Böhme <slow@samba.org>
Tested-by: Steve French <smfrench@gmail.com>
Reviewed-by: Steve French <smfrench@gmail.com>
Acked-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c