Skip to contentSkip to conversation

CVE-2026-90168: ksmbd: retain connection for pending notify work

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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: retain connection for pending notify work

Deferred CHANGE_NOTIFY work keeps an async message ID after the original request work is released. A durable handle can outlive its connection, so the connection teardown can destroy its async IDA before the handle close releases the pending notify work.

Give the synthetic deferred work a connection reference. Release it after the async ID in ksmbd_free_work_struct(). This keeps the async IDA alive until the deferred work is released, even when the original connection has already left the connection list.

During server shutdown there is no client to receive a cleanup response. Skip the write and only release the pending work.

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

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

	Fixed in 7.2.6 with commit 50be5e96c381ae995b7de3869eecdc84476be7f2
	Fixed in 7.3-rc1 with commit f495154703cbcc0050cfd53469bd56965791616b

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-90168

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/ksmbd_work.c
fs/smb/server/ksmbd_work.h
fs/smb/server/smb2pdu.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/50be5e96c381ae995b7de3869eecdc84476be7f2
	https://git.kernel.org/stable/c/f495154703cbcc0050cfd53469bd56965791616b