Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-68809

CRITICAL 9.1EPSS 53%

ksmbd: vfs: fix race on m_flags in vfs_cache

Mitigation

  • Upgrade Linux to 991f8a79db99b14c48d20d2052c82d65b9186cad or later.

Who should check

  • Anyone running Linux >= f44158485826c076335d6860d35872271a83791d, < a4fd1fdf505facfae26b5654c9eff321f4cbc1a7; >= f44158485826c076335d6860d35872271a83791d, < 5adad9727a815c26013b0d41cfee92ffa7d4037c; >= f44158485826c076335d6860d35872271a83791d, < ccc78781041589ea383e61d5d7a1e9a31b210b93; >= f44158485826c076335d6860d35872271a83791d, < ee63729760f5b61a66f345c54dc4c7514e62383d; >= f44158485826c076335d6860d35872271a83791d, < 991f8a79db99b14c48d20d2052c82d65b9186cad
  • Anyone running Linux 5.15

Vulnerability facts

Affected
Linux >= f44158485826c076335d6860d35872271a83791d, < a4fd1fdf505facfae26b5654c9eff321f4cbc1a7; >= f44158485826c076335d6860d35872271a83791d, < 5adad9727a815c26013b0d41cfee92ffa7d4037c; >= f44158485826c076335d6860d35872271a83791d, < ccc78781041589ea383e61d5d7a1e9a31b210b93; >= f44158485826c076335d6860d35872271a83791d, < ee63729760f5b61a66f345c54dc4c7514e62383d; >= f44158485826c076335d6860d35872271a83791d, < 991f8a79db99b14c48d20d2052c82d65b9186cad; Linux 5.15
Fixed in
Linux 5adad9727a815c26013b0d41cfee92ffa7d4037c, Linux 991f8a79db99b14c48d20d2052c82d65b9186cad
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
9.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: High
EPSS
0.80% chance of exploitation in 30 days (percentile 53, 2026-11-26)
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= f44158485826c076335d6860d35872271a83791d, < a4fd1fdf505facfae26b5654c9eff321f4cbc1a7; >= f44158485826c076335d6860d35872271a83791d, < 5adad9727a815c26013b0d41cfee92ffa7d4037c; >= f44158485826c076335d6860d35872271a83791d, < ccc78781041589ea383e61d5d7a1e9a31b210b93; >= f44158485826c076335d6860d35872271a83791d, < ee63729760f5b61a66f345c54dc4c7514e62383d; >= f44158485826c076335d6860d35872271a83791d, < 991f8a79db99b14c48d20d2052c82d65b9186cad—cvelist
Linux5.15—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-68809. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68809.md
Affected: Linux >= f44158485826c076335d6860d35872271a83791d, < a4fd1fdf505facfae26b5654c9eff321f4cbc1a7; >= f44158485826c076335d6860d35872271a83791d, < 5adad9727a815c26013b0d41cfee92ffa7d4037c; >= f44158485826c076335d6860d35872271a83791d, < ccc78781041589ea383e61d5d7a1e9a31b210b93; >= f44158485826c076335d686…
Fixed in: Linux 5adad9727a815c26013b0d41cfee92ffa7d4037c, Linux 991f8a79db99b14c48d20d2052c82d65b9186cad

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-68809 being exploited?

There is no confirmed exploitation: CVE-2025-68809 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.80% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-68809?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2025-68809?

Linux >= f44158485826c076335d6860d35872271a83791d, < a4fd1fdf505facfae26b5654c9eff321f4cbc1a7; >= f44158485826c076335d6860d35872271a83791d, < 5adad9727a815c26013b0d41cfee92ffa7d4037c; >= f44158485826c076335d6860d35872271a83791d, < ccc78781041589ea383e61d5d7a1e9a31b210b93; >= f44158485826c076335d6860d35872271a83791d, < ee63729760f5b61a66f345c54dc4c7514e62383d; >= f44158485826c076335d6860d35872271a83791d, < 991f8a79db99b14c48d20d2052c82d65b9186cad; Linux 5.15.

Is there a fix for CVE-2025-68809?

Yes. Fixed in Linux 5adad9727a815c26013b0d41cfee92ffa7d4037c, Linux 991f8a79db99b14c48d20d2052c82d65b9186cad. Upgrade Linux to 991f8a79db99b14c48d20d2052c82d65b9186cad or later.

How do I check if I'm affected by CVE-2025-68809?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors