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 D965C35AAC4 for ; Thu, 11 Sep 2025 16:53:31 +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=1757609611; cv=none; b=XafWR68w9yjJhnqsJY/HlbS18p/VpaoEXMw1j/kKPhyycjcbX3B+8wFt1MLSx+q70CRMv9hUIz1xImOAPrEdoSCviFqQiQJNWCG4JCreuBrh/xw/j7RbI36UN/7kZJ66pkSTTYcL9bAIn48l4aL+7HdwJwjTaUdl5oG1DluCOQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757609611; c=relaxed/simple; bh=yDt8lN+mmgLDBk6FlkxDKi45G1yCrB5MFgCaWUB5tsU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RWKR4KD2BqC1HthIhQodRSCb2Iho4Lgt1GcSg5F067ryN3dxLiN6J/cuoBDm2TDij2HgxTvycXRKVCnRJEZZ3JlehKIGCEMPOn/U6IKZd4c9pPQDRg+lLAcpz31dC980t+cpqJi+Zuhq8lmQXfbiVIqJQRez5TIU+HV5zRDeAT4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B+XnDkf7; 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="B+XnDkf7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5832DC4CEF0; Thu, 11 Sep 2025 16:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757609611; bh=yDt8lN+mmgLDBk6FlkxDKi45G1yCrB5MFgCaWUB5tsU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=B+XnDkf71vLe+xJ9ipflN0iAS0GlCbz3IpAR12T8i9k5BfuHkQGCrX0/pz6YIcIB7 i8dfDzSoVNc87E1YMAw9cY2ktVEvIBgtc4/te4tk9rMvLHwP/n3c5z8Fop7uRwIiTp eGBskSNV/oBNpLQViQf8gSEUIeU1ei2hLVWzZtZs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39745: rcutorture: Fix rcutorture_one_extend_check() splat in RT kernels Date: Thu, 11 Sep 2025 18:52:46 +0200 Message-ID: <2025091140-CVE-2025-39745-ac0b@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=3124; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=084hctLYJoy8BoACtkgbgYBt4awwvEzCiQM8rprliHg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmH/kUohMyuX1puMnNL1pmXq0W3Wlst/Vv+aIulgINcw EFnL+fMjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiISDPDgq5zzx0rIpysNnia nUk5U13pYnb0OsP8QKt/kzrfzn3Nu0hFztGy9PK3iSIaAA== 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: rcutorture: Fix rcutorture_one_extend_check() splat in RT kernels For built with CONFIG_PREEMPT_RT=y kernels, running rcutorture tests resulted in the following splat: [ 68.797425] rcutorture_one_extend_check during change: Current 0x1 To add 0x1 To remove 0x0 preempt_count() 0x0 [ 68.797533] WARNING: CPU: 2 PID: 512 at kernel/rcu/rcutorture.c:1993 rcutorture_one_extend_check+0x419/0x560 [rcutorture] [ 68.797601] Call Trace: [ 68.797602] [ 68.797619] ? lockdep_softirqs_off+0xa5/0x160 [ 68.797631] rcutorture_one_extend+0x18e/0xcc0 [rcutorture 2466dbd2ff34dbaa36049cb323a80c3306ac997c] [ 68.797646] ? local_clock+0x19/0x40 [ 68.797659] rcu_torture_one_read+0xf0/0x280 [rcutorture 2466dbd2ff34dbaa36049cb323a80c3306ac997c] [ 68.797678] ? __pfx_rcu_torture_one_read+0x10/0x10 [rcutorture 2466dbd2ff34dbaa36049cb323a80c3306ac997c] [ 68.797804] ? __pfx_rcu_torture_timer+0x10/0x10 [rcutorture 2466dbd2ff34dbaa36049cb323a80c3306ac997c] [ 68.797815] rcu-torture: rcu_torture_reader task started [ 68.797824] rcu-torture: Creating rcu_torture_reader task [ 68.797824] rcu_torture_reader+0x238/0x580 [rcutorture 2466dbd2ff34dbaa36049cb323a80c3306ac997c] [ 68.797836] ? kvm_sched_clock_read+0x15/0x30 Disable BH does not change the SOFTIRQ corresponding bits in preempt_count() for RT kernels, this commit therefore use softirq_count() to check the if BH is disabled. The Linux kernel CVE team has assigned CVE-2025-39745 to this issue. Affected and fixed versions =========================== Fixed in 6.15.11 with commit a85550267247cdf5e7499be00ea8e388ab014e50 Fixed in 6.16.2 with commit 69c5ae0f441c2d72e8f48dc1e08464c172360c4c Fixed in 6.17-rc1 with commit 8d71351d88e478d3c4e945e3218e97ec677fd807 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-39745 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/rcutorture.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/a85550267247cdf5e7499be00ea8e388ab014e50 https://git.kernel.org/stable/c/69c5ae0f441c2d72e8f48dc1e08464c172360c4c https://git.kernel.org/stable/c/8d71351d88e478d3c4e945e3218e97ec677fd807