ksmbd: fix out of bounds in init_smb2_rsp_hdr()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's ksmbd component has an out-of-bounds flaw in init_smb2_rsp_hdr(). A client can trigger it by sending an SMB2 negotiate request followed by an SMB1 negotiate request. The input does not specify whether authentication is required; no user interaction is described.
Engineers running Linux systems with ksmbd should check their kernel versions; affected versions are not specified.