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 D50422522A7 for ; Thu, 4 Sep 2025 15:34:15 +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=1757000055; cv=none; b=gMW8gKSuT03Dyl87zLu9sGJLsJvgYD3GoSHJijuwOK0Bsu7fqd3LuBl2wh4FwwEavIjKRD393XuAsuQbss70skNkcP9uPxTt1tJ0aaLWS4V1o4J2K3CQH2D2nNl5xGLF9uVdzDxZRT9dy/urpgYPuKd6W+kOtaQm440AgQhQXxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757000055; c=relaxed/simple; bh=GfghrRTfqToRkXa36Yay+nuzswjMWAeO+KMf2nM67Tw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=I7gxLiPQWo33gFNgXOBaQoXvRB7oIIpXCnAs8dY7oswDm2Yn0M7nri6x4Znz49wavJwByvwLBSLtMF/8z6B8k9pTTHA64tdK0UNp7OeFq4rW1/UZl2KfhQ+J49l56vefUyMpb6+jvmZNWBaXEBuAMoATFXAogOhJpzcEar4R0bc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VaZXksgO; 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="VaZXksgO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CFA2C4CEF6; Thu, 4 Sep 2025 15:34:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757000055; bh=GfghrRTfqToRkXa36Yay+nuzswjMWAeO+KMf2nM67Tw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VaZXksgOWNZ2uW/L9uDq1AGFbf0GPFymRBZI3V0d+gmQkAYxAcadEPg8O26kLxzWI pn4FT02CQtMvQ8pzr8plmoZVam892HN5V//9DJhVGuzFnalgjKZ3sBVnpcym0XrWRh Pq0L8UL5mknmnkALHgMV0GaERHga/8iX5K0mzw0s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38704: rcu/nocb: Fix possible invalid rdp's->nocb_cb_kthread pointer access Date: Thu, 4 Sep 2025 17:33:09 +0200 Message-ID: <2025090454-CVE-2025-38704-4353@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=2574; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0dIpI98Hdxjcg/zrXtqN3pAN9Dk2R1b+GctXnT6YjOQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk7N6oJF3Bwzkr/k95+a0XhG0kO/bOSr5YeqHhl23r+6 x3n/TZrO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiuRcZFkzzqvfLf/6w6cJH uYpvH4TnuvBcy2NY0Czdf/ymSL38nhbTqH+5R4yDLm7ZCgA= 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: rcu/nocb: Fix possible invalid rdp's->nocb_cb_kthread pointer access In the preparation stage of CPU online, if the corresponding the rdp's->nocb_cb_kthread does not exist, will be created, there is a situation where the rdp's rcuop kthreads creation fails, and then de-offload this CPU's rdp, does not assign this CPU's rdp->nocb_cb_kthread pointer, but this rdp's->nocb_gp_rdp and rdp's->rdp_gp->nocb_gp_kthread is still valid. This will cause the subsequent re-offload operation of this offline CPU, which will pass the conditional check and the kthread_unpark() will access invalid rdp's->nocb_cb_kthread pointer. This commit therefore use rdp's->nocb_gp_kthread instead of rdp_gp's->nocb_gp_kthread for safety check. The Linux kernel CVE team has assigned CVE-2025-38704 to this issue. Affected and fixed versions =========================== Fixed in 6.12.43 with commit cce3d027227c69e85896af9fbc6fa9af5c68f067 Fixed in 6.15.11 with commit 1c951683a720b17c9ecaad1932bc95b29044611f Fixed in 6.16.2 with commit 9b5ec8e6b31755288a07b3abeeab8cd38e9d3c9d Fixed in 6.17-rc1 with commit 1bba3900ca18bdae28d1b9fa10f16a8f8cb2ada1 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-38704 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: kernel/rcu/tree_nocb.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/cce3d027227c69e85896af9fbc6fa9af5c68f067 https://git.kernel.org/stable/c/1c951683a720b17c9ecaad1932bc95b29044611f https://git.kernel.org/stable/c/9b5ec8e6b31755288a07b3abeeab8cd38e9d3c9d https://git.kernel.org/stable/c/1bba3900ca18bdae28d1b9fa10f16a8f8cb2ada1