CVE-2022-50859

cifs: Fix the error length of VALIDATE_NEGOTIATE_INFO message

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
May 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d5c7076b772ad7dcdb92303397b36aee8fa0d25d to before d0050ec3ebbcb3451df9a65b8460be9b9e02e80cAffected
  • d5c7076b772ad7dcdb92303397b36aee8fa0d25d to before 9312e04b6c6bc46354ecd0cc82052a2b3df0b529Affected
  • d5c7076b772ad7dcdb92303397b36aee8fa0d25d to before 60480291c1fcafad8425d93f771b5bcc2bd398b4Affected
  • d5c7076b772ad7dcdb92303397b36aee8fa0d25d to before 943eb0ede74ecd609fdfd3f0b83e0d237613e526Affected
  • d5c7076b772ad7dcdb92303397b36aee8fa0d25d to before fada9b8c95c77bb46b89e18117405bc90fce9f74Affected
  • d5c7076b772ad7dcdb92303397b36aee8fa0d25d to before e98ecc6e94f4e6d21c06660b0f336df02836694fAffected
LinuxLinux
  • 5.0Affected
  • before 5.0Not affected
  • 5.4.220 through 5.4.*Not affected
  • 5.10.150 through 5.10.*Not affected
  • 5.15.75 through 5.15.*Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.