ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
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: fix slab-out-of-bounds in smb_strndup_from_utf16()
If ->NameOffset of smb2_create_req is smaller than Buffer offset of smb2_create_req, slab-out-of-bounds read can happen from smb2_open. This patch set the minimum value of the name offset to the buffer offset to validate name length of smb2_create_req().
From the CVE record · Linux
The Linux kernel's ksmbd component can read beyond a slab boundary when an SMB2 create request has a NameOffset smaller than its Buffer offset. A crafted request can trigger the read in smb2_open; the input does not specify whether authentication is required.
Engineers running Linux kernels with ksmbd should check their deployments; affected versions are not specified.