smb/client: fix out-of-bounds read in smb2_compound_op()
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:
smb/client: fix out-of-bounds read in smb2_compound_op()
If a server sends a truncated response but a large OutputBufferLength, and terminates the EA list early, check_wsl_eas() returns success without validating that the entire OutputBufferLength fits within iov_len.
Then smb2_compound_op() does: memcpy(idata->wsl.eas, data[0], size[0]);
Where size[0] is OutputBufferLength. If iov_len is smaller than size[0], memcpy can read beyond the end of the rsp_iov allocation and leak adjacent kernel heap memory.
From the CVE record · Linux
The Linux kernel SMB client has an out-of-bounds read in smb2_compound_op(). A server that sends a truncated response with a large OutputBufferLength and an early-terminated EA list can cause the client to read beyond a response allocation, potentially leaking adjacent kernel heap memory.
Engineers running Linux kernels that use the SMB client should check their versions; affected versions were not specified.