CVE-2025-68809
published critical CVSS 3.1 · 9.1ksmbd: vfs: fix race on m_flags in vfs_cache
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf44158485826c076335d6860d35872271a83791d to < a4fd1fdf505facfae26b5654c9eff321f4cbc1a7 · f44158485826c076335d6860d35872271a83791d to < 5adad9727a815c26013b0d41cfee92ffa7d4037c · f44158485826c076335d6860d35872271a83791d to < ccc78781041589ea383e61d5d7a1e9a31b210b93 · f44158485826c076335d6860d35872271a83791d to < ee63729760f5b61a66f345c54dc4c7514e62383d · f44158485826c076335d6860d35872271a83791d to < 991f8a79db99b14c48d20d2052c82d65b9186cad · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.120 through 6.6.* (unaffected · semver) · 6.12.64 through 6.12.* (unaffected · semver) · 6.18.3 through 6.18.* (unaffected · semver) · 6.19 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.192-1 | DLA-4906-1 |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Debian | trixie | linux | Advisory build | 6.12.69-1 | DSA-6126-1 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1052 | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1052 | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1052 | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1059.65~22.04.1 | USN-8440-1 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1059 | Advisory build | 6.8.0-1059.65~22.04.1 | USN-8440-1 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1059 | Advisory build | 6.8.0-1059.65~22.04.1 | USN-8440-1 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1059 | Advisory build | 6.8.0-1059.65~22.04.1 | USN-8440-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1049-oracle | Advisory build | 6.8.0-1049.50~22.04.1 | USN-8203-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1049-oracle-64k | Advisory build | 6.8.0-1049.50~22.04.1 | USN-8203-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1051-ibm | Advisory build | 6.8.0-1051.51~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1051-nvidia | Advisory build | 6.8.0-1051.54~22.04.1 | USN-8185-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1051-nvidia-64k | Advisory build | 6.8.0-1051.54~22.04.1 | USN-8185-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1052-aws | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1052-aws-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1054-gcp | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1054-gcp-64k | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1059-azure | Advisory build | 6.8.0-1059.65~22.04.1 | USN-8440-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-110-generic | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-110-generic-64k | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-110-lowlatency | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-110-lowlatency-64k | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.1-1047-realtime | Advisory build | 6.8.1-1047.48~22.04.1 | USN-8184-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1052-aws | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1052-aws-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1059-azure | Advisory build | 6.8.0-1059.65~22.04.1 | USN-8440-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-110-generic | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-110-lowlatency | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.1-1047-realtime | Advisory build | 6.8.1-1047.48~22.04.1 | USN-8184-1 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1054 | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1054 | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-headers-6.8.0-1049-oracle | Advisory build | 6.8.0-1049.50~22.04.1 | USN-8203-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1049-oracle-64k | Advisory build | 6.8.0-1049.50~22.04.1 | USN-8203-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1051-ibm | Advisory build | 6.8.0-1051.51~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-headers-6.8.0-1051-nvidia | Advisory build | 6.8.0-1051.54~22.04.1 | USN-8185-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1051-nvidia-64k | Advisory build | 6.8.0-1051.54~22.04.1 | USN-8185-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1052-aws | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1052-aws-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1054-gcp | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-headers-6.8.0-1054-gcp-64k | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-headers-6.8.0-1059-azure | Advisory build | 6.8.0-1059.65~22.04.1 | USN-8440-1 |
| Ubuntu | jammy | linux-headers-6.8.0-110-generic | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-headers-6.8.0-110-generic-64k | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-headers-6.8.0-110-lowlatency | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-headers-6.8.0-110-lowlatency-64k | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-headers-6.8.1-1047-realtime | Advisory build | 6.8.1-1047.48~22.04.1 | USN-8184-1 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-hwe-6.8-cloud-tools-6.8.0-110 | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-hwe-6.8-headers-6.8.0-110 | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-hwe-6.8-tools-6.8.0-110 | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-ibm-6.8 | Advisory build | 6.8.0-1051.51~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-ibm-6.8-headers-6.8.0-1051 | Advisory build | 6.8.0-1051.51~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-ibm-6.8-tools-6.8.0-1051 | Advisory build | 6.8.0-1051.51~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-image-6.8.0-110-generic | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1049-oracle | Advisory build | 6.8.0-1049.50~22.04.1 | USN-8203-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1049-oracle-64k | Advisory build | 6.8.0-1049.50~22.04.1 | USN-8203-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1051-ibm | Advisory build | 6.8.0-1051.51~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1051-nvidia | Advisory build | 6.8.0-1051.54~22.04.1 | USN-8185-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1051-nvidia-64k | Advisory build | 6.8.0-1051.54~22.04.1 | USN-8185-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1052-aws | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1052-aws-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1054-gcp | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1054-gcp-64k | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1059-azure | Advisory build | 6.8.0-1059.65~22.04.1 | USN-8440-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-110-generic | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-110-generic-64k | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-110-lowlatency | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-110-lowlatency-64k | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.1-1047-realtime | Advisory build | 6.8.1-1047.48~22.04.1 | USN-8184-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8 | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-110 | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-headers-6.8.0-110 | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-lib-rust-6.8.0-110-lowlatency | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-tools-6.8.0-110 | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1049-oracle | Advisory build | 6.8.0-1049.50~22.04.1 | USN-8203-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1049-oracle-64k | Advisory build | 6.8.0-1049.50~22.04.1 | USN-8203-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1051-ibm | Advisory build | 6.8.0-1051.51~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-modules-6.8.0-1051-nvidia | Advisory build | 6.8.0-1051.54~22.04.1 | USN-8185-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1051-nvidia-64k | Advisory build | 6.8.0-1051.54~22.04.1 | USN-8185-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1052-aws | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1052-aws-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1054-gcp | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-modules-6.8.0-1054-gcp-64k | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-modules-6.8.0-1059-azure | Advisory build | 6.8.0-1059.65~22.04.1 | USN-8440-1 |
| Ubuntu | jammy | linux-modules-6.8.0-110-generic | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-modules-6.8.0-110-generic-64k | Advisory build | 6.8.0-110.110~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-modules-6.8.0-110-lowlatency | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-modules-6.8.0-110-lowlatency-64k | Advisory build | 6.8.0-110.110.1~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-modules-6.8.1-1047-realtime | Advisory build | 6.8.1-1047.48~22.04.1 | USN-8184-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1049-oracle | Advisory build | 6.8.0-1049.50~22.04.1 | USN-8203-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1049-oracle-64k | Advisory build | 6.8.0-1049.50~22.04.1 | USN-8203-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1051-ibm | Advisory build | 6.8.0-1051.51~22.04.1 | USN-8179-3 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1051-nvidia | Advisory build | 6.8.0-1051.54~22.04.1 | USN-8185-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1052-aws | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1052-aws-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8179-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1054-gcp | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1054-gcp-64k | Advisory build | 6.8.0-1054.57~22.04.1 | USN-8179-4 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Scenarios
- en: AV:N - The race is reachable through ksmbd SMB2 requests received over TCP, normally port 445, including CREATE, SET_INFO, QUERY_INFO, and CLOSE operations. AC:L - An attacker can control both sides by opening multiple handles to the same inode and issuing concurrent requests or disconnects that ksmbd processes on separate workers. PR:N - Although a valid session, writable tree connection, and delete-capable handle are normally required, ksmbd supports unauthenticated guest sessions and guest-writable shares. Such deployments let a remote attacker reach the race without possessing credentials. UI:N - The attacker can create the necessary handles, race the requests, and trigger final close without any victim action. S:U - The affected SMB server, filesystem operations, and resulting data impact remain within the host kernel's security authority. C:N - The raced field is an aligned unsigned flag word, and the affected operations neither expose data nor corrupt pointers, object lifetimes, or adjacent memory. I:H - Lost or stale pending-delete and delete-on-close bits can cause attacker-selected files, directories, or alternate data streams to be unlinked despite the intended state, producing persistent data loss in a critical writable share. A:H - Unexpected and repeatable deletion of operational files while they are in use can persistently make shared storage or dependent services unavailable.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f44158485826c076335d6860d35872271a83791d to < a4fd1fdf505facfae26b5654c9eff321f4cbc1a7 (affected · git)f44158485826c076335d6860d35872271a83791d to < 5adad9727a815c26013b0d41cfee92ffa7d4037c (affected · git)f44158485826c076335d6860d35872271a83791d to < ccc78781041589ea383e61d5d7a1e9a31b210b93 (affected · git)f44158485826c076335d6860d35872271a83791d to < ee63729760f5b61a66f345c54dc4c7514e62383d (affected · git)f44158485826c076335d6860d35872271a83791d to < 991f8a79db99b14c48d20d2052c82d65b9186cad (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.120 through 6.6.* (unaffected · semver)6.12.64 through 6.12.* (unaffected · semver)6.18.3 through 6.18.* (unaffected · semver)6.19 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/5adad9727a815c26013b0d41cfee92ffa7d4037c
- https://git.kernel.org/stable/c/991f8a79db99b14c48d20d2052c82d65b9186cad
- https://git.kernel.org/stable/c/a4fd1fdf505facfae26b5654c9eff321f4cbc1a7
- https://git.kernel.org/stable/c/ccc78781041589ea383e61d5d7a1e9a31b210b93
- https://git.kernel.org/stable/c/ee63729760f5b61a66f345c54dc4c7514e62383d
Provider assertions
1Linux · cna
ksmbd: vfs: fix race on m_flags in vfs_cache
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b662868aee3db5679161f4112e6ce868376919dd3c38785f257a6f62ed7aa958
- Ingested
- 30 Oct 2026, 12:31:36 UTC
- Source record
- Official CVE record