ksmbd: validate session id and tree id in the compound request
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| 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: validate session id and tree id in the compound request
This patch validate session id and tree id in compound request. If first operation in the compound is SMB2 ECHO request, ksmbd bypass session and tree validation. So work->sess and work->tcon could be NULL. If secound request in the compound access work->sess or tcon, It cause NULL pointer dereferecing error.
From the CVE record · Linux
The Linux kernel’s ksmbd fails to validate session and tree IDs when a compound SMB request begins with an SMB2 ECHO operation. A subsequent operation that accesses the session or tree can trigger a NULL pointer dereference. The input does not specify authentication requirements.
Engineers running the Linux kernel with ksmbd should check their systems; affected versions are not specified.