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 459CCBE46 for ; Sat, 16 Aug 2025 13:22:19 +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=1755350539; cv=none; b=VqRW819X8YKznR0a63gHAS+dMmCMMcLAbgo/hHx6utCQ8UC8S5L2eL9Bzyq8htE4MJMYqFrcL3ujnIvWLsX/h/luEzbbsb/L5mz9x4LcAa5CEYEhmoqFdFo7gTkZvg4/RYVCqD50ghGQwp6iagPSSt6pHC54vrPdjPcov699uqM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755350539; c=relaxed/simple; bh=VF7/YBfN0rNvM0JCcT6zbJ2pXWMmcdpfmmOfLCw88oA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dREyQngQ0t3UEc2M8mJFlbCxuXzGLLB9kjwhyBqWw6X/wIRpyUkA2pvIhnrGuj6Lc69SBTDHtSO6kRLCcb+l5UZQfQxK1yixkSdlGw3lnyOU0dNYHPveOer+firrWLKYEL53h+g/0mLpVQ6b5WofmHGPWP9bznnZotBbW5OL4gk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c1A+zBaL; 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="c1A+zBaL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E638C4CEEF; Sat, 16 Aug 2025 13:22:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755350538; bh=VF7/YBfN0rNvM0JCcT6zbJ2pXWMmcdpfmmOfLCw88oA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=c1A+zBaLJcb9+jDHhliyxXLWakYRIv/UPtWP1S7icXvjLxpAZS+PxYoe3Zae0En3f JzC2oRzPBAW5wSw2pwaQ6OUXV3Bl1VqJqsxJF2jWNdBg//dQ0/Ij6GyXHPDXwSOv/C lAEowINTQMagxAKMdm9glSIkcpq7zTfKE2aJJGvY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-32246: ksmbd: call rcu_barrier() in ksmbd_server_exit() Date: Sat, 16 Aug 2025 15:22:13 +0200 Message-ID: <2025081612-CVE-2023-32246-2e6d@gregkh> X-Mailer: git-send-email 2.50.1 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=2377; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xCbY72lAgVoeZbpiOnGU9vdZdVC+QaW6tJzYoPTi698=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkL2liivh26qmWy566l4ILFjjq30rQ97QomNq99z/HCb Aa3eUF2RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk0JVhwdEDRbN7Jl+c4Bwl GLXc+4t6+33mLQzzQydOmnBYIEZq8l3+ZWvCX9xu2ZycDAA= 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: ksmbd: call rcu_barrier() in ksmbd_server_exit() racy issue is triggered the bug by racing between closing a connection and rmmod. In ksmbd, rcu_barrier() is not called at module unload time, so nothing prevents ksmbd from getting unloaded while it still has RCU callbacks pending. It leads to trigger unintended execution of kernel code locally and use to defeat protections such as Kernel Lockdown The Linux kernel CVE team has assigned CVE-2023-32246 to this issue. Affected and fixed versions =========================== Fixed in 5.15.111 with commit c053e389db0d892e2ff5a60ec5e533b976503795 Fixed in 6.1.28 with commit b80422474ffe44cb5e813cd6da1f1c6bc50fd9d2 Fixed in 6.2.15 with commit d4174505016a3b2996eb7ff1530dcabbf15d47b6 Fixed in 6.3.2 with commit 5a7090ccc242ab009ee7769e9d7fad6644dbe9bd Fixed in 6.4 with commit eb307d09fe15844fdaebeb8cc8c9b9e925430aa5 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-2023-32246 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/ksmbd/server.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/c053e389db0d892e2ff5a60ec5e533b976503795 https://git.kernel.org/stable/c/b80422474ffe44cb5e813cd6da1f1c6bc50fd9d2 https://git.kernel.org/stable/c/d4174505016a3b2996eb7ff1530dcabbf15d47b6 https://git.kernel.org/stable/c/5a7090ccc242ab009ee7769e9d7fad6644dbe9bd https://git.kernel.org/stable/c/eb307d09fe15844fdaebeb8cc8c9b9e925430aa5