Skip to contentSkip to conversation

CVE-2026-99280: ksmbd: drain session procfs readers before dropping table references

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 7

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: drain session procfs readers before dropping table references

Session registration failure and connection cleanup can drop the table reference while the per-session procfs entry is still accessible. If a reader holds the last remaining reference, its final put calls proc_remove() from its own callback and waits for that callback to finish.

Remove the procfs entry before dropping the table reference in the registration failure path. Queue sessions removed during connection cleanup and drain their procfs readers after releasing both session locks, then return their table references. Keep the global hash node unhashed while a session is queued so a concurrent unregister cannot drop the reference again.

Previous-session replacement also destroys the file table before the session is finally freed. Detach the idr under the lock used by procfs file counters, and report zero files after it has been detached. This prevents a reader from accessing the idr during or after its destruction.

The Linux kernel CVE team has assigned CVE-2026-99280 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.3 with commit d7fd1f98607f2cd358e583f9548bdf0173090a86 and fixed in 7.3.2 with commit 6789f0983f8e85ce3a5ed8c50fc05d613ead9c2c
	Issue introduced in 7.3 with commit d7fd1f98607f2cd358e583f9548bdf0173090a86 and fixed in 7.4-rc1 with commit 1c087cf7d5386c708d8984b263280b42b3daada0
	Issue introduced in 7.2.8 with commit c99ea7855124ca1428a1e59c2b4590aaef34eacf

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99280

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/smb/server/mgmt/user_session.c
fs/smb/server/vfs_cache.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/6789f0983f8e85ce3a5ed8c50fc05d613ead9c2c
	https://git.kernel.org/stable/c/1c087cf7d5386c708d8984b263280b42b3daada0