ksmbd: avoid out of bounds access in decode_preauth_ctxt()
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: avoid out of bounds access in decode_preauth_ctxt()
Confirm that the accessed pneg_ctxt->HashAlgorithms address sits within the SMB request boundary; deassemble_neg_contexts() only checks that the eight byte smb2_neg_context header + (client controlled) DataLength are within the packet boundary, which is insufficient.
Checking for sizeof(struct smb2_preauth_neg_context) is overkill given that the type currently assumes SMB311_SALT_SIZE bytes of trailing Salt.
From the CVE record · Linux
The Linux kernel's ksmbd component does not adequately check that a preauthentication context field lies within an SMB request. A client-controlled request can trigger an out-of-bounds access during negotiation; the input does not specify whether authentication is required.
Engineers running Linux kernels with ksmbd should check whether their versions are affected; no affected versions are specified.