Skip to contentSkip to conversation

CVE-2026-90165: smb/server: fix invalid pointer dereference in ksmbd_stop_durable_scavenger()

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:

smb/server: fix invalid pointer dereference in ksmbd_stop_durable_scavenger()

See the procedure below:

ksmbd_launch_ksmbd_durable_scavenger
durable_scavenger_running = true
server_conf.dh_task = kthread_run() // fail, dh_task is an ERR_PTR()

server_ctrl_handle_reset
ksmbd_stop_durable_scavenger kthread_stop(server_conf.dh_task) // invalid pointer

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

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

	Issue introduced in 6.6.142 with commit 7f0cb478703cbeaddfe5c9101c5c73cd975d1073 and fixed in 6.6.157 with commit 3f8651f6bb52159c9e23993c77a2b51b9505ad64
	Issue introduced in 6.11 with commit d484d621d40f4a8b8959008802d79bef3609641b and fixed in 6.12.110 with commit af9cb997d13a17029a0d3863e33f4c837e27a8ae
	Issue introduced in 6.11 with commit d484d621d40f4a8b8959008802d79bef3609641b and fixed in 6.18.52 with commit b2d78c199dfd983638662ace0612d4fade3dbea1
	Issue introduced in 6.11 with commit d484d621d40f4a8b8959008802d79bef3609641b and fixed in 7.2.6 with commit a2eb72b4d53bb9d8d6c00f3f794eaccb4b1ce5ed
	Issue introduced in 6.11 with commit d484d621d40f4a8b8959008802d79bef3609641b and fixed in 7.3-rc1 with commit bef46b604732d83f8da29f782868de4d25bf972c

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

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/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/3f8651f6bb52159c9e23993c77a2b51b9505ad64
	https://git.kernel.org/stable/c/af9cb997d13a17029a0d3863e33f4c837e27a8ae
	https://git.kernel.org/stable/c/b2d78c199dfd983638662ace0612d4fade3dbea1
	https://git.kernel.org/stable/c/a2eb72b4d53bb9d8d6c00f3f794eaccb4b1ce5ed
	https://git.kernel.org/stable/c/bef46b604732d83f8da29f782868de4d25bf972c