data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2025-68809 in the interactive tracker

CVE-2025-68809

ksmbd: vfs: fix race on m_flags in vfs_cache

9.1 EPSS 0.5% AV:N

Published 2026-01-13 (9 months ago) by the Linux kernel CNA. Subsystem fs/smb. Debian urgency: not yet assigned.

What to do, per Debian release

Debian's own status for CVE-2025-68809 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormvulnerable6.1.190-1No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication.
Debian 13trixiefixedDSA-6126-1 · 2026-02-09 · text6.12.69-1Update the kernel and reboot. DSA-6126-1 shipped the fix on 2026-02-09, in 6.12.69-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed6.18.3-1Update the kernel and reboot. Fixed in 6.18.3-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed6.18.3-1Update the kernel and reboot. Fixed in 6.18.3-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

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.

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

fs/smb/server/vfs_cache.c

What this is
KERNEL SMB3 SERVER (KSMBD)MAINTAINERS section matched on fs/smb/server/ · linux-cifs@vger.kernel.org · Maintained
Kernel module
ksmbd

Check it on the machine

grep -wE 'CONFIG_SMBFS|CONFIG_SMB_SERVER' /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

lsmod | grep -w ksmbd

Prints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.

Show whether Debian builds this, per release

Debian builds this as a loadable module. Every release below compiles it as a module on every flavour, so whether the code is in the running kernel depends on whether that module is loaded.

  • bookworm, trixie, forky, sidm
m
a loadable module on every flavour - check lsmod, can be blacklisted
Build switches
CONFIG_SMBFS, CONFIG_SMB_SERVER
Reads as
all on means the file is compiled; any one off means it is not.

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2026-01-13 (9 months ago)source
CVSS
9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:Hsource recompute it
Attack vector
network (AV:N)source
EPSS
0.53%, higher than 43.4% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
fs/smb

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
5.156.6.1205adad9727a81
5.156.12.64ccc787810415
5.156.18.3ee63729760f5
5.156.19991f8a79db99

Debian advisories

AdvisoryDateShipped toDebian
DSA-6126-12026-02-09trixie 6.12.69-1tracker

Why the CNA scored it this way

Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source

AV:NAttack vector, network
The race is reachable through ksmbd SMB2 requests received over TCP, normally port 445, including CREATE, SET_INFO, QUERY_INFO, and CLOSE operations.
AC:LAttack complexity, low
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:NPrivileges required, none
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:NUser interaction, none
The attacker can create the necessary handles, race the requests, and trigger final close without any victim action.
S:UScope, unchanged
The affected SMB server, filesystem operations, and resulting data impact remain within the host kernel's security authority.
C:NConfidentiality impact, none
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:HIntegrity impact, high
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:HAvailability impact, high
Unexpected and repeatable deletion of operational files while they are in use can persistently make shared storage or dependent services unavailable.