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 16016516145 for ; Thu, 17 Sep 2026 16:21:25 +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=1789662087; cv=none; b=Ojo7U4Ei3CThtb0Rx4NyY/loEVoaJJn6p5IJEi9Dd97CnZ/3GEQLIAHgNo4+CnWYrublHs8Z+DM5dXYxXGfc8l4oyvSCA5/FxudLiIzD41sM+gZnmzR8ZTqQEkkjVlUEdjsHf1364pUtJC5jYucQc6bt4w3u5QhTDy1vZefp91U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662087; c=relaxed/simple; bh=OgiwNyWwrM6SdgSK/Z4rKuJdjt1wfPecOstCQVhqgLY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jE8PnKKmlBnz3EDPUDrHShvhUHQvFosxwtpRx4VNLxbdc2B/ZZiGw7Yq+t87cLi9MkqtH7LW0s1XE7x9Zsj1rnblYjFeKBrtFYi1bKQ5DpgwGCUwPBuqFViEjSyB04xnNk76BmxQ5JL7pRhcvUE+1ECWXnrYqoUfQ3J4NG+132s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m5p5dM80; 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="m5p5dM80" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4018F1F00893; Thu, 17 Sep 2026 16:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662085; bh=+9swLB9jT3DbM+fHRBnjOusXcZusr+eFeI3QLLIYcMY=; h=From:To:Cc:Subject:Date:Reply-To; b=m5p5dM806KtXK7J/hrZQOgY6YgyLg05dv0i8KynI/48wGVelrQGO/0xnS5q30BQ79 EfnLx63egBtCAmjSimae66owzEr4DZ1OZ7fH0DY0saMZl+ZoRQlt5SZJhXKeZgU0Br dV2soYbL/QDcAezAVzQSagCgf2ovi/xFIdj1k3Ys= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90235: sunrpc: xprtsock: annotate shared socket callbacks with READ_ONCE/WRITE_ONCE Date: Thu, 17 Sep 2026 17:11:05 +0100 Message-ID: <2026091741-CVE-2026-90235-03f8@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=3788; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GxbHhTlo0qkT2jSMpqcYjIqIf2nu0ioe/QAx1yFQtUU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBDqPytho75g294Xxhs1PMw7P1zpzM7Ox1XrrnC27r RfV2+RXdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEzjIwzNMKWTTJWnqB47wJ Bd4fA7SXee/mu8wwPyO/yKromLru/wN+a1XFZfOuCTZMBwA= 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: sunrpc: xprtsock: annotate shared socket callbacks with READ_ONCE/WRITE_ONCE xprtsock replaces and restores sk->sk_data_ready and sk->sk_write_space on live sockets with plain stores, and xs_udp_do_set_buffer_size() invokes sk->sk_write_space via a plain load. These callback pointers are shared with generic socket and protocol paths that may read or invoke them concurrently, so xprtsock needs the same READ_ONCE()/WRITE_ONCE() callback visibility contract that the validated 4022 family applied elsewhere. When SUNRPC takes over an AF_LOCAL, UDP, or TCP socket and later restores the lower-socket callbacks during teardown, another CPU may still hold an earlier callback snapshot. The plain replace/restore pattern leaves the same visibility hole as the validated 4022 family, so a stale snapshot can still invoke xs_data_ready() or xs_udp_write_space() after the live callback fields have already been restored to the lower-socket handlers. Use WRITE_ONCE() for the shared sk_data_ready and sk_write_space stores in xs_local_finish_connecting(), xs_udp_finish_connecting(), xs_tcp_finish_connecting(), and xs_restore_old_callbacks(). Use READ_ONCE() for the direct sk_write_space invocation in xs_udp_do_set_buffer_size(). This matches the required callback visibility contract while leaving adjacent sk_state_change and sk_error_report handling unchanged. The Linux kernel CVE team has assigned CVE-2026-90235 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.15 with commit a246b0105bbd9a70a698f69baae2042996f2a0e9 and fixed in 6.6.157 with commit ed80d009b154aa204f541d390884851b3d4f15ae Issue introduced in 2.6.15 with commit a246b0105bbd9a70a698f69baae2042996f2a0e9 and fixed in 6.12.110 with commit 589f761236e05ff9de1bdfd6a5258f113e6457fe Issue introduced in 2.6.15 with commit a246b0105bbd9a70a698f69baae2042996f2a0e9 and fixed in 6.18.52 with commit da652cb17f9faeea1fa44b7215e8869a0b10b664 Issue introduced in 2.6.15 with commit a246b0105bbd9a70a698f69baae2042996f2a0e9 and fixed in 7.2.6 with commit d8f0b83753809761a560c4b33249388548ba6e43 Issue introduced in 2.6.15 with commit a246b0105bbd9a70a698f69baae2042996f2a0e9 and fixed in 7.3-rc1 with commit 33930840b5f0a79f826e7c69dc6cd78f72a67481 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-90235 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/sunrpc/xprtsock.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/ed80d009b154aa204f541d390884851b3d4f15ae https://git.kernel.org/stable/c/589f761236e05ff9de1bdfd6a5258f113e6457fe https://git.kernel.org/stable/c/da652cb17f9faeea1fa44b7215e8869a0b10b664 https://git.kernel.org/stable/c/d8f0b83753809761a560c4b33249388548ba6e43 https://git.kernel.org/stable/c/33930840b5f0a79f826e7c69dc6cd78f72a67481