cifs: Fix the error length of VALIDATE_NEGOTIATE_INFO message
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d5c7076b772ad7dcdb92303397b36aee8fa0d25d · < e98ecc6e94f4e6d21c06660b0f336df02836694f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cifs: Fix the error length of VALIDATE_NEGOTIATE_INFO message
Commit d5c7076b772a ("smb3: add smb3.1.1 to default dialect list") extend the dialects from 3 to 4, but forget to decrease the extended length when specific the dialect, then the message length is larger than expected.
This maybe leak some info through network because not initialize the message body.
After apply this patch, the VALIDATE_NEGOTIATE_INFO message length is reduced from 28 bytes to 26 bytes.
From the CVE record · Linux
The Linux kernel’s cifs code sends an oversized VALIDATE_NEGOTIATE_INFO message with an uninitialized portion. This may disclose information over the network; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with the affected cifs code should check their versions; affected versions are not specified.