In the Linux kernel, the following vulnerability has been resolved: ksmbd: vfs: fix race on m_flags in vfs_cache ksmbd maintains delete-on-close and… (CVE-2025-68809)
A race condition vulnerability in the Linux kernel's ksmbd component related to inconsistent locking of the m_flags field in vfs_cache has been resolved. The issue could cause delete-on-close and pending-delete flags to be lost or observed inconsistently, leading to unexpected file deletion behavior. The fix unifies locking around m_flags to prevent data races while preserving intended delete-on-close semantics.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel's ksmbd subsystem involves a race condition on the m_flags field of ksmbd_inode, which tracks delete-on-close and pending-delete states. Different code paths accessed m_flags with inconsistent locking, causing potential data races when multiple threads concurrently open, close, or delete the same file. This could result in files either not being deleted when expected or being deleted prematurely. The fix applies consistent locking (ci->m_lock) around all accesses to m_flags, ensuring atomicity and preventing race conditions without altering the delete-on-close behavior.
Potential Impact
The vulnerability can cause inconsistent file deletion behavior in ksmbd shares, such as files remaining on disk after a delete-on-close operation or files disappearing while still in use. This impacts data integrity and availability on affected systems using ksmbd for SMB file sharing. There is no confidentiality impact. The CVSS vector indicates no confidentiality impact but high integrity and availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description states it has been resolved in the Linux kernel, implying an official fix exists. Users should apply the relevant Linux kernel updates that include this fix once available. Until then, no specific workaround is described.
In the Linux kernel, the following vulnerability has been resolved: ksmbd: vfs: fix race on m_flags in vfs_cache ksmbd maintains delete-on-close and… (CVE-2025-68809)
Description
A race condition vulnerability in the Linux kernel's ksmbd component related to inconsistent locking of the m_flags field in vfs_cache has been resolved. The issue could cause delete-on-close and pending-delete flags to be lost or observed inconsistently, leading to unexpected file deletion behavior. The fix unifies locking around m_flags to prevent data races while preserving intended delete-on-close semantics.
CVSS v3.1
Score 9.1critical
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's ksmbd subsystem involves a race condition on the m_flags field of ksmbd_inode, which tracks delete-on-close and pending-delete states. Different code paths accessed m_flags with inconsistent locking, causing potential data races when multiple threads concurrently open, close, or delete the same file. This could result in files either not being deleted when expected or being deleted prematurely. The fix applies consistent locking (ci->m_lock) around all accesses to m_flags, ensuring atomicity and preventing race conditions without altering the delete-on-close behavior.
Potential Impact
The vulnerability can cause inconsistent file deletion behavior in ksmbd shares, such as files remaining on disk after a delete-on-close operation or files disappearing while still in use. This impacts data integrity and availability on affected systems using ksmbd for SMB file sharing. There is no confidentiality impact. The CVSS vector indicates no confidentiality impact but high integrity and availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description states it has been resolved in the Linux kernel, implying an official fix exists. Users should apply the relevant Linux kernel updates that include this fix once available. Until then, no specific workaround is described.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-ffpf-rf35-3fhq
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-68809"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a6b72d19c2644c7f8477090
Added to database: 07/30/2026, 15:50:41 UTC
Last enriched: 07/30/2026, 19:13:37 UTC
Last updated: 09/10/2026, 19:38:48 UTC
Views: 9
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.