CVE-2025-68806: ksmbd: fix buffer validation by including null terminator size in EA length
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix buffer validation by including null terminator size in EA length
The smb2setea 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68806?
CVE-2025-68806 is classified as a medium severity vulnerability due to its potential impact on buffer validation.
How do I fix CVE-2025-68806?
To fix CVE-2025-68806, update to the latest version of the Linux Kernel where the vulnerability has been patched.
What systems are affected by CVE-2025-68806?
CVE-2025-68806 affects systems running the Linux Kernel with ksmbd functionality.
What does CVE-2025-68806 exploit?
CVE-2025-68806 exploits inadequate buffer validation in the smb2_set_ea function related to Extended Attributes.
Is CVE-2025-68806 an ongoing threat?
CVE-2025-68806 is not a currently active threat if systems are patched, but it can pose risks for unpatched versions.