CVE-2022-50859

Source
https://cve.org/CVERecord?id=CVE-2022-50859
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50859.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50859
Downstream
Related
Published
2025-12-30T12:15:33.198Z
Modified
2026-03-20T12:22:38.920094Z
Summary
cifs: Fix the error length of VALIDATE_NEGOTIATE_INFO message
Details

In the Linux kernel, the following vulnerability has been resolved:

cifs: Fix the error length of VALIDATENEGOTIATEINFO 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 VALIDATENEGOTIATEINFO message length is reduced from 28 bytes to 26 bytes.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50859.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d5c7076b772ad7dcdb92303397b36aee8fa0d25d
Fixed
d0050ec3ebbcb3451df9a65b8460be9b9e02e80c
Fixed
9312e04b6c6bc46354ecd0cc82052a2b3df0b529
Fixed
60480291c1fcafad8425d93f771b5bcc2bd398b4
Fixed
943eb0ede74ecd609fdfd3f0b83e0d237613e526
Fixed
fada9b8c95c77bb46b89e18117405bc90fce9f74
Fixed
e98ecc6e94f4e6d21c06660b0f336df02836694f

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50859.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.0.0
Fixed
5.4.220
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.150
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.75
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.17
Type
ECOSYSTEM
Events
Introduced
5.20.0
Fixed
6.0.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50859.json"