Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: ksmbd: use memcmp() to compare ClientGUIDs ClientGUID is a fixed-size binary value and can contain embedded NUL bytes. strncmp() stops comparing at the first NUL byte, so different ClientGUID values can incorrectly be treated as equal. Use memcmp() in SMB3 multichannel session binding and FSCTL_VALIDATE_NEGOTIATE_INFO to compare all SMB2_CLIENT_GUID_SIZE bytes.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 7bde6f181fa307d2cc1ec2b0313ac8e9811c8232; affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 5a0367bf5ce420be7b19936def2e90adcf32a683; affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before ba2a5b66f1d414eb8403d655f8813783892cfc85; affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before a386c83043015a703e227775f778e40343f45911; affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before d535363299822c5caa543787b21bd5cfa3e41949; affected e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before e8bb506e6ef749ac0336f3e579d8d02396b7d832 |
| Linux / Linux | affected 5.15; unaffected 0 before 5.15; unaffected 6.1.189 through 6.1.*; unaffected 6.6.158 through 6.6.*; unaffected 6.12.111 through 6.12.*; unaffected 6.18.53 through 6.18.*; unaffected 7.1.8 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/7bde6f181fa307d2cc1ec2b0313ac8e9811c8232
- https://git.kernel.org/stable/c/5a0367bf5ce420be7b19936def2e90adcf32a683
- https://git.kernel.org/stable/c/ba2a5b66f1d414eb8403d655f8813783892cfc85
- https://git.kernel.org/stable/c/a386c83043015a703e227775f778e40343f45911
- https://git.kernel.org/stable/c/d535363299822c5caa543787b21bd5cfa3e41949
- https://git.kernel.org/stable/c/e8bb506e6ef749ac0336f3e579d8d02396b7d832