CVE-2025-68809
Last modified
CVE-2025-68809 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. 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 pending-delete state in ksmbd_inode->m_flags. In vfs_cache.c this field is accessed under inconsistent locking: some paths read and modify m_flags under ci->m_lock while others do so without taking the lock at all. Examples: - ksmbd_query_inode_status() and __ksmbd_inode_close() use ci->m_lock when checking or updating m_flags. - ksmbd_inode_pending_delete(), ksmbd_set_inode_pending_delete(), ksmbd_clear_inode_pending_delete() and ksmbd_fd_set_delete_on_close() used to read and modify m_flags without ci->m_lock. This creates a potential data race on m_flags when multiple threads open, close and delete the same file concurrently. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
Description
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 pending-delete state in ksmbd_inode->m_flags. In vfs_cache.c this field is accessed under inconsistent locking: some paths read and modify m_flags under ci->m_lock while others do so without taking the lock at all. Examples: - ksmbd_query_inode_status() and __ksmbd_inode_close() use ci->m_lock when checking or updating m_flags. - ksmbd_inode_pending_delete(), ksmbd_set_inode_pending_delete(), ksmbd_clear_inode_pending_delete() and ksmbd_fd_set_delete_on_close() used to read and modify m_flags without ci->m_lock. This creates a potential data race on m_flags when multiple threads open, close and delete the same file concurrently. In the worst case delete-on-close and pending-delete bits can be lost or observed in an inconsistent state, leading to confusing delete semantics (files that stay on disk after delete-on-close, or files that disappear while still in use). Fix it by: - Making ksmbd_query_inode_status() look at m_flags under ci->m_lock after dropping inode_hash_lock. - Adding ci->m_lock protection to all helpers that read or modify m_flags (ksmbd_inode_pending_delete(), ksmbd_set_inode_pending_delete(), ksmbd_clear_inode_pending_delete(), ksmbd_fd_set_delete_on_close()). - Keeping the existing ci->m_lock protection in __ksmbd_inode_close(), and moving the actual unlink/xattr removal outside the lock. This unifies the locking around m_flags and removes the data race while preserving the existing delete-on-close behaviour.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= f44158485826c076335d6860d35872271a83791d, < 5adad9727a815c26013b0d41cfee92ffa7d4037c; >= f44158485826c076335d6860d35872271a83791d, < ccc78781041589ea383e61d5d7a1e9a31b210b93; >= f44158485826c076335d6860d35872271a83791d, < ee63729760f5b61a66f345c54dc4c7514e62383d; >= f44158485826c076335d6860d35872271a83791d, < 991f8a79db99b14c48d20d2052c82d65b9186cad |
| Linux | Linux | 5.15 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-68809?
How severe is CVE-2025-68809?
How do I fix CVE-2025-68809?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-68803In the Linux kernel, the following vulnerability has been re…8
- CVE-2025-68804In the Linux kernel, the following vulnerability has been re…
- CVE-2025-68805In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-68806In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-68807In the Linux kernel, the following vulnerability has been re…
- CVE-2025-68808In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-6881A vulnerability was found in D-Link DI-8100 16.07.21. It has…8.8
- CVE-2025-68810In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-68811In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2025-68812Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2025-68813In the Linux kernel, the following vulnerability has been re…
- CVE-2025-68814In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-68809?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
