In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix buffer validation by including null terminator size in EA length The… (CVE-2025-68806)
A vulnerability in the Linux kernel's ksmbd component related to buffer validation in the smb2_set_ea function has been resolved. The issue involved incorrect buffer size checks that omitted the null terminator byte for Extended Attribute (EA) names. This could lead to improper validation of buffer sizes when handling EA data.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel's ksmbd module was due to the smb2_set_ea function performing buffer validation without accounting for the null terminator byte in the EA Name length. The validation checks omitted adding '+1' for the null terminator, potentially causing buffer size miscalculations. The patch fixes this by explicitly including the null terminator size in the EA length calculation, ensuring accurate buffer validation and preventing potential memory handling issues.
Potential Impact
The vulnerability affects the integrity of buffer validation in the ksmbd SMB2 Extended Attributes handling. According to the CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N), it is remotely exploitable without privileges or user interaction and can lead to a high impact on confidentiality. There is no indication of impact on integrity or availability. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch links or vendor advisories are provided, users should monitor official Linux kernel security advisories for updates addressing CVE-2025-68806. Until a patch is available, cautious use of ksmbd or disabling it if not needed may reduce exposure.
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix buffer validation by including null terminator size in EA length The… (CVE-2025-68806)
Description
A vulnerability in the Linux kernel's ksmbd component related to buffer validation in the smb2_set_ea function has been resolved. The issue involved incorrect buffer size checks that omitted the null terminator byte for Extended Attribute (EA) names. This could lead to improper validation of buffer sizes when handling EA data.
CVSS v3.1
Score 7.5high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's ksmbd module was due to the smb2_set_ea function performing buffer validation without accounting for the null terminator byte in the EA Name length. The validation checks omitted adding '+1' for the null terminator, potentially causing buffer size miscalculations. The patch fixes this by explicitly including the null terminator size in the EA length calculation, ensuring accurate buffer validation and preventing potential memory handling issues.
Potential Impact
The vulnerability affects the integrity of buffer validation in the ksmbd SMB2 Extended Attributes handling. According to the CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N), it is remotely exploitable without privileges or user interaction and can lead to a high impact on confidentiality. There is no indication of impact on integrity or availability. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch links or vendor advisories are provided, users should monitor official Linux kernel security advisories for updates addressing CVE-2025-68806. Until a patch is available, cautious use of ksmbd or disabling it if not needed may reduce exposure.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4wfq-6xp5-vp47
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-68806"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d19c2644c7f847736e
Added to database: 07/30/2026, 15:50:41 UTC
Last enriched: 07/30/2026, 19:11:51 UTC
Last updated: 09/10/2026, 19:26:55 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.