Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154323; b=5m+1Y/2uLKSUM836foT7RC95ZcnGaZX+QQGjOP5s9mxJAcfjqZEdhLKtYcWCT3XKvOjd cFMA7RNnBh87L3UPkANy2l5wdlx5Powty5NQybok169udVXjA6wCZGfn6L8+pM5+w4N1X J5aduRXy1xIz+mB1+qEtIy1zxFsERFGLyfkg65AtHpqLNdNBq//1J3WQEPbYXCU9lMFI6 qz/XiHPIEzcWECImbsO0/XM9r9SKoMwCCb1uT/MLN3ZYwQWQig9h47KBuNJVDLa27huTB kdnQfreQ1s1F+or5zepRKPdMSyXKfS73NfdAu97F41ckL2rFMWS86peyWkZxFb/6cpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154323; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=pNZWkhQ0CLpJs2NF4NJx+BforuEi5nvcQMr+HFzoRs4=; b=sw7clkDcnYGElsdkr1G3Q55+R2gm+vQH6P6n6dsR3k+6nU2Wz/SVgv+esqkdP14ZvEPP tlb6t4s709T3iMUmS6hDuKIWEULFa3Lr2eafAgy1TfQFjdSPyFO3KL731D/njYx9j7Ajt 6Zs1+ilK8cT2pTdL4cl2SBi9W27sNM0FUrqN4zLfvG7bvoTKfuAuLYymF7+O/ysyTdWu3 pE66G4UCQGxGdErBv8pxlajtxceHspXBZC0cp3KmFpyIWfTkDEDK/yaT4DKR3/7AmZCyS iBpqwZj709lIjNnwy9xR7ne6Gr5LmtJ7ClgpNaSNiDNPCnHyJWDIRxVjvX83JSyM4Vw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=unHg9E1h; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31DED60A6F41 for ; Fri, 20 Nov 2026 05:58:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=unHg9E1h Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81D4A1F000CA; Fri, 20 Nov 2026 05:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154323; bh=pNZWkhQ0CLpJs2NF4NJx+BforuEi5nvcQMr+HFzoRs4=; h=From:To:Cc:Subject:Date:Reply-To; b=unHg9E1hMzk/qnj92ZjcPil1yNL2XbQ7rupbQZcrLB+wQJcEc9q4DVFjZqvk1AGZI XPoXSXn7aBAIFtAsHlhhmitlhYHPzAtOqvviT9fDaE780Op7g5NZngk6eD8w0gsCl2 8gzAbIMFhTqtkbGlCWdfTK6ly1QQpnYljDizP74I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99676: net: restore refcount ordering for lockless socket access Date: Fri, 20 Nov 2026 06:51:02 +0100 Message-ID: <2026112053-CVE-2026-99676-6e55@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3425; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dmxKYq2MbR0ZsvnDtV0wl7ddDxOgADSJVPuq49dK/4k=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7zeuWl167Unb1IrXbh+mq0q/1ZN/9t7p9CZn69wrL L3MuXpzO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi+hIMc8Uu3Lcv1yxJc1ZN Cj9+xHNxgELdC4YFUw1Yj2ZfZ7P5GhT89PudhrsHO19uAQA= 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: net: restore refcount ordering for lockless socket access Before commit fb041bb7c0a9 ("locking/refcount: Consolidate implementations of refcount_t"), default builds implemented refcount_inc_not_zero() using atomic_add_unless(), which provided full memory ordering on success. The commit removed that ordering on weakly ordered architectures, allowing accesses after a successful reference acquisition to be reordered before it. Use refcount_inc_not_zero_acquire() in the IPv4 and IPv6 established lookups and in inet_twsk_purge(), where the socket is validated again after taking a reference. bpf_sk_assign() can receive a socket pointer obtained through BTF without a reference. Use acquire ordering when it takes its own reference for a refcounted socket. Use refcount_set_release() when setting refcounts in the SYN cookie, TCP Fast Open, request migration, and TIME_WAIT paths. Keep the existing TIME_WAIT smp_wmb(), which separately orders the refcount store before ehash publication. The Linux kernel CVE team has assigned CVE-2026-99676 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca and fixed in 6.12.118 with commit 6f4fc93f76cd8ebd3c89a064573715503048d1ad Issue introduced in 5.5 with commit fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca and fixed in 6.18.64 with commit ddd14d0b5b5e650077779d9a158cb7a80ee8297b Issue introduced in 5.5 with commit fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca and fixed in 7.3.5 with commit 52f5a5ab318f5b120eb686069fbd0108016c02b2 Issue introduced in 5.5 with commit fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca and fixed in 7.4-rc2 with commit 5b5d8f351dd96f56a58bb516a80e2d4d742fe4e2 Issue introduced in 5.4.208 with commit d0d583484d2ed9f5903edbbfa7e2a68f78b950b0 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-99676 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/core/filter.c net/ipv4/inet_connection_sock.c net/ipv4/inet_hashtables.c net/ipv4/inet_timewait_sock.c net/ipv4/syncookies.c net/ipv4/tcp_fastopen.c net/ipv6/inet6_hashtables.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/6f4fc93f76cd8ebd3c89a064573715503048d1ad https://git.kernel.org/stable/c/ddd14d0b5b5e650077779d9a158cb7a80ee8297b https://git.kernel.org/stable/c/52f5a5ab318f5b120eb686069fbd0108016c02b2 https://git.kernel.org/stable/c/5b5d8f351dd96f56a58bb516a80e2d4d742fe4e2