Skip to contentSkip to conversation

CVE-2026-98112: ksmbd: fix listener task lifetime on netdev events

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

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: fix listener task lifetime on netdev events

The listener thread exits when its listening socket is shutdown. The netdevice notifier shuts down the socket before calling kthread_stop(), so the task_struct can be freed before kthread_stop() gets its reference.

Create the listener in a stopped state and hold an extra task_struct reference until kthread_stop_put() completes. Also stop and release listeners before freeing their interface records during TCP teardown.

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

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

	Issue introduced in 6.19 with commit 3316a8fc840d82fad5efcf76ad0ea3f76fdca209 and fixed in 7.2.7 with commit 40581f10c1e56238b157af5f260b8f9518a0cbc1
	Issue introduced in 6.19 with commit 3316a8fc840d82fad5efcf76ad0ea3f76fdca209 and fixed in 7.3-rc2 with commit a506290f59e1c6ce9ac0a13158640bb8fee93471

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

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/transport_tcp.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/40581f10c1e56238b157af5f260b8f9518a0cbc1
	https://git.kernel.org/stable/c/a506290f59e1c6ce9ac0a13158640bb8fee93471