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 BA34232F74D for ; Mon, 22 Dec 2025 16:14:33 +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=1766420073; cv=none; b=qP8kQCA8JyJ8d1DqAlAnCD0uw1/ITZvS1MlEECOfrc/Ocnqsw0j8oy384y/K/+pLxBlsDSdJwCdptKJg4WckoNz3+GiYcpJ5dVw3Z9lFi/w9z20TJzqkBcb0M9J7IZ5PjJLIQEFk59gcXKRohIKZg2X30TUhLURFTLqLjVyiADQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766420073; c=relaxed/simple; bh=5wbPGX8w2vJED74x5FyRoK9T0+HnEJ1FfZqIn+YaEAg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hu96mY4GlDaCAjd9pXS7MWJGuzOKCh3bO3RCUWCQkmSzLzv7Ye1Y16sM/07E0nirQUoFcWDTvnSUNvU+ydvUlFAKYyPUJzv9O7fdF2nPbVPUrux7ejGVQu4GSBPqYKgTXkV6G5UL56cTU+0qAGfr+onZHKIRt2mfUxE/2yOSZfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VfU5mCqN; 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="VfU5mCqN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDFA1C4CEF1; Mon, 22 Dec 2025 16:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766420073; bh=5wbPGX8w2vJED74x5FyRoK9T0+HnEJ1FfZqIn+YaEAg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=VfU5mCqNnWb4Xto/Dj/occW0pxNxrLAb/s2itq9KbklWD9I42rsc+/ylm3Tr5On2E 9yhn/m+JqJYfKYv7/Y7qfYvClBMYBJnCYeHVT/7VuCjGtCHAkLs3Cw+S6kszmskHL1 cTdzu8LMRS16H6lVzYZmajcCilcl43CaX/EV3Of8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68336: locking/spinlock/debug: Fix data-race in do_raw_write_lock Date: Mon, 22 Dec 2025 17:14:28 +0100 Message-ID: <2025122220-CVE-2025-68336-0253@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=3532; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VynBvVeK1Pm0aZcNwJ9qCHtkL+mhZlQ7z4wNZksoRJY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmeebHb9vzXVVJjtV+v/30jb+fa6A3atr8i9pvH1q5VW L2VQ6anI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACai/4Zhvv/ikJjZnaJfFqm/ mXdymfe/VzWxfxnmyrhJN03++M3j58/ELg6LY8zKR2acAwA= 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: locking/spinlock/debug: Fix data-race in do_raw_write_lock KCSAN reports: BUG: KCSAN: data-race in do_raw_write_lock / do_raw_write_lock write (marked) to 0xffff800009cf504c of 4 bytes by task 1102 on cpu 1: do_raw_write_lock+0x120/0x204 _raw_write_lock_irq do_exit call_usermodehelper_exec_async ret_from_fork read to 0xffff800009cf504c of 4 bytes by task 1103 on cpu 0: do_raw_write_lock+0x88/0x204 _raw_write_lock_irq do_exit call_usermodehelper_exec_async ret_from_fork value changed: 0xffffffff -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1103 Comm: kworker/u4:1 6.1.111 Commit 1a365e822372 ("locking/spinlock/debug: Fix various data races") has adressed most of these races, but seems to be not consistent/not complete. >From do_raw_write_lock() only debug_write_lock_after() part has been converted to WRITE_ONCE(), but not debug_write_lock_before() part. Do it now. The Linux kernel CVE team has assigned CVE-2025-68336 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 1a365e822372ba24c9da0822bc583894f6f3d821 and fixed in 6.12.62 with commit b163a5e8c703201c905d6ec7920ed79d167e8442 Issue introduced in 5.5 with commit 1a365e822372ba24c9da0822bc583894f6f3d821 and fixed in 6.17.12 with commit 16b3590c0e1e615757dade098c8fbc0d4f040c76 Issue introduced in 5.5 with commit 1a365e822372ba24c9da0822bc583894f6f3d821 and fixed in 6.18.1 with commit 396a9270a7b90886be501611b13aa636f2e8c703 Issue introduced in 5.5 with commit 1a365e822372ba24c9da0822bc583894f6f3d821 and fixed in 6.19-rc1 with commit c14ecb555c3ee80eeb030a4e46d00e679537f03a Issue introduced in 4.4.209 with commit 3106fb78d3579c8e9c9b3040f7f7841981919624 Issue introduced in 4.9.209 with commit c0911024ff927ba5c4786b507004cb615be1d776 Issue introduced in 4.14.164 with commit 09226e5c38639437565af01e6009a9286a351d04 Issue introduced in 4.19.95 with commit c7673f01604fa722b9d7c1e29e17cec1b8ae09c5 Issue introduced in 5.4.11 with commit c120c3dbeb76305235c8e557f84d9e2d7d0f5933 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-68336 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/locking/spinlock_debug.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/b163a5e8c703201c905d6ec7920ed79d167e8442 https://git.kernel.org/stable/c/16b3590c0e1e615757dade098c8fbc0d4f040c76 https://git.kernel.org/stable/c/396a9270a7b90886be501611b13aa636f2e8c703 https://git.kernel.org/stable/c/c14ecb555c3ee80eeb030a4e46d00e679537f03a