# CVE-2022-50859: cifs: Fix the error length of VALIDATE_NEGOTIATE_INFO message

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-02)
- Published: 2025-12-30T12:15:33.198Z
- Modified: 2026-06-17T05:24:18.583Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from d5c7076b772ad7dcdb92303397b36aee8fa0d25d before d0050ec3ebbcb3451df9a65b8460be9b9e02e80c; from d5c7076b772ad7dcdb92303397b36aee8fa0d25d before 9312e04b6c6bc46354ecd0cc82052a2b3df0b529; from d5c7076b772ad7dcdb92303397b36aee8fa0d25d before 60480291c1fcafad8425d93f771b5bcc2bd398b4; from d5c7076b772ad7dcdb92303397b36aee8fa0d25d before 943eb0ede74ecd609fdfd3f0b83e0d237613e526; from d5c7076b772ad7dcdb92303397b36aee8fa0d25d before fada9b8c95c77bb46b89e18117405bc90fce9f74; from d5c7076b772ad7dcdb92303397b36aee8fa0d25d before e98ecc6e94f4e6d21c06660b0f336df02836694f; 5.0 (not affected: before 5.0; from 5.4.220 up to 5.4.*; from 5.10.150 up to 5.10.*; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/d0050ec3ebbcb3451df9a65b8460be9b9e02e80c>
- <https://git.kernel.org/stable/c/9312e04b6c6bc46354ecd0cc82052a2b3df0b529>
- <https://git.kernel.org/stable/c/60480291c1fcafad8425d93f771b5bcc2bd398b4>
- <https://git.kernel.org/stable/c/943eb0ede74ecd609fdfd3f0b83e0d237613e526>
- <https://git.kernel.org/stable/c/fada9b8c95c77bb46b89e18117405bc90fce9f74>
- <https://git.kernel.org/stable/c/e98ecc6e94f4e6d21c06660b0f336df02836694f>

## Sources

- CVE List: [CVE-2022-50859](https://www.cve.org/CVERecord?id=CVE-2022-50859), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50859](https://nvd.nist.gov/vuln/detail/CVE-2022-50859), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50859 · Whole record: https://cve.day/CVE-2022-50859.json · Rebuilt by cve.day 2026-11-25T22:58:21.382Z
