Skip to contentSkip to conversation

CVE-2025-39692: smb: server: split ksmbd_rdma_stop_listening() out of ksmbd_rdma_destroy()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 5, 2025

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: split ksmbd_rdma_stop_listening() out of ksmbd_rdma_destroy()

We can't call destroy_workqueue(smb_direct_wq); before stop_sessions()!

Otherwise already existing connections try to use smb_direct_wq as a NULL pointer.

The Linux kernel CVE team has assigned CVE-2025-39692 to this issue.

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

	Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.1.149 with commit 524e90e58a267dad11e23351d9e4b1f941490976
	Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.6.103 with commit 212eb86f75b4d7b82f3d94aed95ba61103bccb93
	Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.12.44 with commit 003e6a3150299f681f34cb189aa068018cef6a45
	Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.16.4 with commit e41e33400516702427603f8fbbec43c91ede09c0
	Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.17-rc3 with commit bac7b996d42e458a94578f4227795a0d4deef6fa

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-2025-39692

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/connection.c
fs/smb/server/transport_rdma.c
fs/smb/server/transport_rdma.h

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/524e90e58a267dad11e23351d9e4b1f941490976
	https://git.kernel.org/stable/c/212eb86f75b4d7b82f3d94aed95ba61103bccb93
	https://git.kernel.org/stable/c/003e6a3150299f681f34cb189aa068018cef6a45
	https://git.kernel.org/stable/c/e41e33400516702427603f8fbbec43c91ede09c0
	https://git.kernel.org/stable/c/bac7b996d42e458a94578f4227795a0d4deef6fa