Skip to main content
← All vulnerabilities
CVE-2025-68806

ksmbd: fix buffer validation by including null terminator size in EA length

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.1.160, 5.16, 6.5, 6.6
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix buffer validation by including null terminator size in EA length The smb2_set_ea function, which handles Extended Attributes (EA), was performing buffer validation checks that incorrectly omitted the size of the null terminating character (+1 byte) for EA Name. This patch fixes the issue by explicitly adding '+ 1' to EaNameLength where the null terminator is expected to be present in the buffer, ensuring the validation accurately reflects the total required buffer size.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 6.1.52 · fixed in 6.1.160; From 5.15.131 · fixed in 5.16; From 6.4.15 · fixed in 6.5; From 6.5.2 · fixed in 6.6

  • Linux Linux

    6.6

References 5

git.kernel.org