Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E48931328B for ; Fri, 5 Sep 2025 17:22:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757092959; cv=none; b=MNDgIPQdncX85JnIDyqhdvQkLA+zwn0k+77EyxOcBCsgZQPR/4yN3WvuetYl+WxFGYa8LgAtUT8FzE+6sG1QZ5VNT4/zWmiTE2VKtglmCc9MXWSTTs3ILVl32I96rCmL1NpJGwQjIQ+EJasU94hf1FWEc06Qyv1ZbygSSMJNMQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757092959; c=relaxed/simple; bh=3w7h7IW/532x9SeO7tuGQMzDPmYEqN3iQWVXmjcS99E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eelhfBQDdtUj31S+esChnUhLe65pZ7I5NKyaqU55eb0aC7ZA/BMHpM+2dhE6hbAyHQKX+G9qOrL2ab4V0FEQ6nZYnxeQ+/3QXrk6E00z78InSMkpxjwU1572JrAZGPo9VAx7SfNJMB+h7Sd4DFqdRszwQwZ1pY3P1QYpzfK8W1U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Rou8t1rQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Rou8t1rQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7D64C4CEF7; Fri, 5 Sep 2025 17:22:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757092959; bh=3w7h7IW/532x9SeO7tuGQMzDPmYEqN3iQWVXmjcS99E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Rou8t1rQgT950obD0tfFASFyBU3qUc6H1a7pmWPjE0L5xLbUV/g/fmGs3fozup9bl XSfv1EqGWixHLfwJXcW2nAwgpCK1WdU81cQzL+Fo6NElUWTGXGYIDlx9WOUKbWPXH4 yLuFhtneIJt1amEXV5fc4VC0ss3wAdB/tovR8lQk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39692: smb: server: split ksmbd_rdma_stop_listening() out of ksmbd_rdma_destroy() Date: Fri, 5 Sep 2025 19:21:05 +0200 Message-ID: <2025090547-CVE-2025-39692-7452@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2699; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=siaclURWhPYE0kqyLIsGNMI7LuzvVHwuLxKPEj+3dII=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm7pd8b/5x2Uc8poy3y1p3HxzYoqL845r5B4IzjgwvLL eTcdpzc0BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT6S5jWHCV8eK5DUynqj2z Cqa758a/54hXEGOYp/uC70+ezgTH2Oe25QF5uoZhnCpTAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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