title: ksmbd: fix out of bounds in init_smb2_rsp_hdr()
description: In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix out of bounds in init_smb2_rsp_hdr()
If client send smb2 negotiate request and then send smb1 negotiate
request, init_smb2_rsp_hdr is called for smb1 negotiate request since
need_neg is set to false. This patch ignore smb1 packets after ->need_neg
is set to false.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 1da177e4c3f4, lessThan: 5c0df9d30c28, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 330d900620df, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: aa669ef229ae, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 536bb492d39b, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 5.15.145, lessThanOrEqual: 5.15.*, status: unaffected, versionType: custom
version: 6.1.53, lessThanOrEqual: 6.1.*, status: unaffected, versionType: custom
version: 6.4.16, lessThanOrEqual: 6.4.*, status: unaffected, versionType: custom
version: 6.5, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
