# CVE-2022-50859: cifs: Fix the error length of VALIDATE\_NEGOTIATE\_INFO message

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:15:33.198Z
- **Modified:** 2026-06-17T05:24:18.583Z

## Who should check

- Anyone running Linux \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< d0050ec3ebbcb3451df9a65b8460be9b9e02e80c; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< 9312e04b6c6bc46354ecd0cc82052a2b3df0b529; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< 60480291c1fcafad8425d93f771b5bcc2bd398b4; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< 943eb0ede74ecd609fdfd3f0b83e0d237613e526; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< fada9b8c95c77bb46b89e18117405bc90fce9f74; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< e98ecc6e94f4e6d21c06660b0f336df02836694f
- Anyone running Linux 5.0

## 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.

## Affected and fixed versions

- Linux: \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< d0050ec3ebbcb3451df9a65b8460be9b9e02e80c; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< 9312e04b6c6bc46354ecd0cc82052a2b3df0b529; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< 60480291c1fcafad8425d93f771b5bcc2bd398b4; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< 943eb0ede74ecd609fdfd3f0b83e0d237613e526; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< fada9b8c95c77bb46b89e18117405bc90fce9f74; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< e98ecc6e94f4e6d21c06660b0f336df02836694f (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50859. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50859.md
Affected: Linux >= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, < d0050ec3ebbcb3451df9a65b8460be9b9e02e80c; >= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, < 9312e04b6c6bc46354ecd0cc82052a2b3df0b529; >= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, < 60480291c1fcafad8425d93f771b5bcc2bd398b4; >= d5c7076b772ad7dcdb92303…
Fixed in: Linux 9312e04b6c6bc46354ecd0cc82052a2b3df0b529, Linux 60480291c1fcafad8425d93f771b5bcc2bd398b4, Linux 943eb0ede74ecd609fdfd3f0b83e0d237613e526

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50859 being exploited?

There is no confirmed exploitation: CVE-2022-50859 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50859?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50859?

Linux \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< d0050ec3ebbcb3451df9a65b8460be9b9e02e80c; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< 9312e04b6c6bc46354ecd0cc82052a2b3df0b529; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< 60480291c1fcafad8425d93f771b5bcc2bd398b4; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< 943eb0ede74ecd609fdfd3f0b83e0d237613e526; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< fada9b8c95c77bb46b89e18117405bc90fce9f74; \>= d5c7076b772ad7dcdb92303397b36aee8fa0d25d, \< e98ecc6e94f4e6d21c06660b0f336df02836694f; Linux 5.0.

### Is there a fix for CVE-2022-50859?

Yes. Fixed in Linux 9312e04b6c6bc46354ecd0cc82052a2b3df0b529, Linux 60480291c1fcafad8425d93f771b5bcc2bd398b4, Linux 943eb0ede74ecd609fdfd3f0b83e0d237613e526. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50859?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50859>

HTML: <https://flawdb.com/CVE-2022-50859> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50859>
