ksmbd: transport_ipc: validate payload size before reading handle
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: transport_ipc: validate payload size before reading handle
handle_response() dereferences the payload as a 4-byte handle without verifying that the declared payload size is at least 4 bytes. A malformed or truncated message from ksmbd.mountd can lead to a 4-byte read past the declared payload size. Validate the size before dereferencing.
This is a minimal fix to guard the initial handle read.
From the CVE record · Linux
The Linux kernel's ksmbd handle_response() reads a 4-byte handle without first checking that the declared payload is large enough. A malformed or truncated message from ksmbd.mountd can cause a read past the declared payload size. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with ksmbd should check their versions; affected versions are not specified.