ksmbd: validate request buffer size in smb2_allocate_rsp_buf()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: validate request buffer size in smb2_allocate_rsp_buf()
The response buffer should be allocated in smb2_allocate_rsp_buf before validating request. But the fields in payload as well as smb2 header is used in smb2_allocate_rsp_buf(). This patch add simple buffer size validation to avoid potencial out-of-bounds in request buffer.
From the CVE record · Linux
The Linux kernel's ksmbd component does not validate the request buffer size before using SMB2 request fields to allocate a response buffer. A malformed request could cause an out-of-bounds access to the request buffer. The input does not specify whether authentication or user interaction is required.
Engineers running Linux kernels with ksmbd should check their versions; affected versions are not specified.