Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 85B4E37F301 for ; Sat, 15 Aug 2026 06:31:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775511; cv=none; b=N4qhMUIBlSOohr6OOgAGFid4/rT+ZcV5/De83DNIcOl2Mm/c35w5fmIUQYn3cCJLkjp+rJ4zrw8b8vYRd3piC9p7b2vHsiVd1OHbytfjaeKKzS+lAu4UDz9Z93Yp/x5C8bZvbA3zBfeScAvayf0T2P+tcuPDdj4xBsQV5t2d/AE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775511; c=relaxed/simple; bh=t8NVRCWWYGbVnj4hugI9ZWVS8no18hEVcEwKkJfeWRY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c/ZkLVMOC00f61Qhnhg3kez+iAB4Z0bAirWNoZ3/Lrq5xwzLSfT+Htn4c+8o67N7TdXjfLcuieH7K9Dc7yuVKpOraZbm2z3yLTbpZQ/PbpSE4pY9r9yvz+s3e7uylmR7hhNqOC4PXk0Va2YIklmE3F2ZEQBJTZvnY2n18DhXMXM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0wp271Q2; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0wp271Q2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D05A01F000E9; Sat, 15 Aug 2026 06:31:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775510; bh=cKl49w2kgcRCq9lZlT9PMDv//v75ubofVYnUotCor80=; h=From:To:Cc:Subject:Date:Reply-To; b=0wp271Q2Iy9y8V2s8EV9SLBw14uJtSmAnlYTQBF20SKQJYlrMu0C+eBlT25j0BPha iSSlhYaJmTUCpGQmLNNVhnFE0gWarNQCJHJ2PwaKLUYHez2z3XfAgiGCI/rAFsIyDz syhhAbLjDsPr75IkeWKUtMNGYBjZTK2zqc2EONrI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74262: kcm: use WRITE_ONCE() when changing lower socket callbacks Date: Sat, 15 Aug 2026 15:09:49 +0900 Message-ID: <2026081542-CVE-2026-74262-7c5b@gregkh> X-Mailer: git-send-email 2.55.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=3826; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j9zpFMhNxkkGkXPbu1913WprCMtaN7ezQZw3BAzedS0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjEx3Ewtn1qUZPZJP3Dpzms3nBA2O/Djn1Gcmf30Cb t5hvbCkI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSaMqwYP6UXRMutUZNqZvS uini21OBBDG/GwwL5l2K37aG5dnJJsmjAd7FuzXUF9buBgA= 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: kcm: use WRITE_ONCE() when changing lower socket callbacks kcm_attach() replaces a live lower TCP socket's sk_data_ready and sk_write_space callbacks with KCM handlers, and kcm_unattach() restores them later. Those callback-pointer updates are still plain stores even though the same fields can be read and invoked concurrently on other CPUs. If another CPU observes an older callback snapshot after the live field has already been restored, callback execution can run with a mismatched target and sk_user_data state, leading to stale or misdirected wakeups. Use WRITE_ONCE() for the callback replacement and restore operations so these shared callback fields follow the same visibility contract already established by the earlier 4022 fixes. The Linux kernel CVE team has assigned CVE-2026-74262 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 and fixed in 5.10.261 with commit 0cb3e2f40679032c1aa2186280a86e5ead0161ee Issue introduced in 4.6 with commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 and fixed in 5.15.212 with commit fa26e4606aed0f7fe793c325506adeda1d847a43 Issue introduced in 4.6 with commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 and fixed in 6.1.178 with commit b4ccd6eef671d7c44a30123cd29f3acf3de8468e Issue introduced in 4.6 with commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 and fixed in 6.6.145 with commit b8c90823cdfb5f3d22f261aeb3e9066612853c36 Issue introduced in 4.6 with commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 and fixed in 6.12.97 with commit 11faefd11ce2448bac7279ab302dd1954a6547fe Issue introduced in 4.6 with commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 and fixed in 6.18.40 with commit f01fb6138f8eb606b56ce9158e2d8b72352c53f4 Issue introduced in 4.6 with commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 and fixed in 7.1.5 with commit 9684fff87124b201e11dea01ded9173025359a0f Issue introduced in 4.6 with commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 and fixed in 7.2-rc1 with commit 47186409c092cd7dd70350999186c700233e854d 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-2026-74262 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: net/kcm/kcmsock.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/0cb3e2f40679032c1aa2186280a86e5ead0161ee https://git.kernel.org/stable/c/fa26e4606aed0f7fe793c325506adeda1d847a43 https://git.kernel.org/stable/c/b4ccd6eef671d7c44a30123cd29f3acf3de8468e https://git.kernel.org/stable/c/b8c90823cdfb5f3d22f261aeb3e9066612853c36 https://git.kernel.org/stable/c/11faefd11ce2448bac7279ab302dd1954a6547fe https://git.kernel.org/stable/c/f01fb6138f8eb606b56ce9158e2d8b72352c53f4 https://git.kernel.org/stable/c/9684fff87124b201e11dea01ded9173025359a0f https://git.kernel.org/stable/c/47186409c092cd7dd70350999186c700233e854d