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 69F5A315D30 for ; Wed, 24 Dec 2025 10:36: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=1766572599; cv=none; b=R0YkVJBK4mDlKdy8BdEb7ayU6Q/qn9xzbm38ssd5oUhGq0SlRGLJIDkzerE/rq9MH50Zhmz52bKGF1YKCngbSZHqGyoAygYKn3BG/sWdpp4iDblauwWSH08psLCJCzWfdXaEnPhUhSwp5iWzw5FaZUHgYT59tenfud1OEDB9w+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572599; c=relaxed/simple; bh=IYUfGEDrYW+P2yBxOPi5kJZmNCXEwiCujoa7ePKRSyE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KOGaOEqG5lm/J3N7/qsMJwuVi/xFo9hSjQAUBlraF1n916vIdvd+RWPwajrr5WWWR0x507QZHex5Y5pJS9GEJjrmGJfHuHaTkg8OQaki5cmRF3ZbRYz02gP77zmZIVvI8Tk1H6yy8hY6e8oQSkOWaT3MliuL4CIfADGW7hsmlTo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iSyvN4mw; 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="iSyvN4mw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E65D2C4CEFB; Wed, 24 Dec 2025 10:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572599; bh=IYUfGEDrYW+P2yBxOPi5kJZmNCXEwiCujoa7ePKRSyE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=iSyvN4mwWlbrWmv6m+SOpOJ7RzKcEhsTie+R8wRX6x4Rp11qos+/icVFqiY5EaNmF cuBMN+W+lpOgKUg/yf8XueTvdC622vi/DTMJvY35FfEb4f+ogKjfstHKFOqZWfxC31 I9T5JxnN5ycrsPE8ow9cF5CSKWORsm33X60JNWzo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68374: md: fix rcu protection in md_wakeup_thread Date: Wed, 24 Dec 2025 11:35:19 +0100 Message-ID: <2025122402-CVE-2025-68374-560c@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2491; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XfBmRLVqwbaNJOErnmezvwGS3q4ZVYjZVuZmg3Ctr8U=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB69ZzXaeoPtw7ozD/T9jt4dN/uVgcDWCKW6u2cmqv 0KnVNe/7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJMPszzM/n+vbHpCR/5tfz FVsqCn3d/uRGtDAs6GD26T0yy/Xs6VtnHnzuLco2Ep5VDAA= 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: md: fix rcu protection in md_wakeup_thread We attempted to use RCU to protect the pointer 'thread', but directly passed the value when calling md_wakeup_thread(). This means that the RCU pointer has been acquired before rcu_read_lock(), which renders rcu_read_lock() ineffective and could lead to a use-after-free. The Linux kernel CVE team has assigned CVE-2025-68374 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 4469315439827290923fce4f3f672599cabeb366 and fixed in 6.12.63 with commit 21989cb5034c835b212385a2afadf279d8069da0 Issue introduced in 6.5 with commit 4469315439827290923fce4f3f672599cabeb366 and fixed in 6.17.13 with commit a4bd1caf591faeae44cb10b6517e7dacb5139bda Issue introduced in 6.5 with commit 4469315439827290923fce4f3f672599cabeb366 and fixed in 6.18.2 with commit f98b191f78124405294481dea85f8a22a3eb0a59 Issue introduced in 6.5 with commit 4469315439827290923fce4f3f672599cabeb366 and fixed in 6.19-rc1 with commit 0dc76205549b4c25705e54345f211b9f66e018a0 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-68374 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: drivers/md/md.c drivers/md/md.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/21989cb5034c835b212385a2afadf279d8069da0 https://git.kernel.org/stable/c/a4bd1caf591faeae44cb10b6517e7dacb5139bda https://git.kernel.org/stable/c/f98b191f78124405294481dea85f8a22a3eb0a59 https://git.kernel.org/stable/c/0dc76205549b4c25705e54345f211b9f66e018a0