From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796290513; b=5Ctx1DNzROeayp5cKHYtBLEuF6ekviep1GPtQpz1tw/UOYPn9lV7Q3/F+tlhi2C4Xx4q agON4P5wuQwlbbMHraBfljJX1iOCaJCYaydibyhClttztDUgXxTPMuWgg4jdK+qY2baDY p1npmDD8Nt9iJk34mnpoG+8YMBea4PiCBjWrqlA5JZTPul+qCg63345+p0Lhd7rNqNb/E 51rNE0MXTeL/KNqSNc1a8rzDRbXHDcJKkF3F8SbEzrbBC7oKozLSAK1cKUUXAk9Rh01Tn pGpgjat/6uQxwR/bPRbnAAuN7Ob7rSLOEwImE6k0zv+LDYC2mJFV+GsjUtqyHekYK6Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796290513; 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=UZw1W3JuTTv4CorGL8mJ7ye+aAb3EjpjU38UIhfFb6k=; b=gDDF3VO4qfypdd5zNvRqOYz0BiIv4HOJ7BDYOsLQrE5q34DLwJV3cYsBiTE2yKINjJTC +CNDcMDGhrqa651cdsdgUFv7fUXOXpmBiCJxb8mD2U4+uTU3bxcIgWJlNR9GCJ8blIo0l /KtDiUg1uXVdkQA/1w0iYIyzuypmPMtIklgn1zcUXRaExHSf4THy7QkuAZ/b+ccHx3nWb H535Qn94wIRevslhBKViyDy8oylWglCfrgtFgFdjiCiXiNwz4qO0PH7NuQn0pcfVJ8mXo ISm7Chp3N6PBLXMy0+odREZO+XuorIiNJR8uzfAen/Znf4Brv6pdRvuQ9W2QRM/mOmw== 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=RzsyxeG7; 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 0991B606A322 for ; Thu, 3 Dec 2026 09:35:13 +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=RzsyxeG7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55C391F000C1; Thu, 3 Dec 2026 09:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796290512; bh=UZw1W3JuTTv4CorGL8mJ7ye+aAb3EjpjU38UIhfFb6k=; h=From:To:Cc:Subject:Date:Reply-To; b=RzsyxeG7TZliuLVEb9+14e7nw8/b5DD7+PgyI1sDvAOWJ1rgGwWN4sJ+l5RMlR3qT qNNG+wlyN70ZJ6eda3351SpUM29NbFYhpMvqYGgzY8xvfRjeaOkybE5YJSMdq677dt x2CDpEortarEHOI2MdjLqsPsozDQ9K9R0AiAZKSo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-143276: tcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack() Date: Thu, 3 Dec 2026 10:21:52 +0100 Message-ID: <2026120328-CVE-2026-143276-e599@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=4723; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=u3JvlKEfbyBu6k0njV9Hl95UYTyxolFSIf7KHpBNVLY=; b=owGbwMvMwCRo6H6F97bub03G02pJDNmCxitX3eVzb9B2VTDUEmLWMWlw2sXh8vFOQFrXjMn8K bGrnop1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERK7Bjm6XzRFNFdGPN6p2XE I6/CwiqxGbumMizYYeU6q/LasmnXbNUm/XbTP75in8EBAA== 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: tcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack() When IPV6_FL_F_REFLECT is set on a listener, or the net.ipv6.flowlabel_reflect sysctl has FLOWLABEL_REFLECT_ESTABLISHED, tcp_v6_send_synack() reflects the flowlabel of the SYN packet, reading it from the skb stored in ireq->pktopts. Since commit 079096f103fa ("tcp/dccp: install syn_recv requests into ehash table"), request sockets are processed without holding the listener lock. A cpu can then process a retransmitted SYN for a request socket, and send a SYNACK from tcp_check_req(), while another cpu receives the ACK completing the 3WHS. tcp_v6_syn_recv_sock() consumes ireq->pktopts when it wins the hashdance, and the first cpu reads a freed skb: BUG: KASAN: slab-use-after-free in tcp_v6_send_synack (include/linux/skbuff.h:3152 include/linux/ipv6.h:110 net/ipv6/tcp_ipv6.c:582) Read of size 8 at addr ffff88802b08b608 by task poc-ipv6-pktopt/5076 Call Trace: tcp_v6_send_synack (include/linux/skbuff.h:3152 include/linux/ipv6.h:110 net/ipv6/tcp_ipv6.c:582) tcp_rtx_synack (net/ipv4/tcp_output.c:4719) tcp_check_req (net/ipv4/tcp_minisocks.c:762) tcp_v6_rcv (net/ipv6/tcp_ipv6.c:1826) ip6_protocol_deliver_rcu (net/ipv6/ip6_input.c:479) ip6_input_finish (net/ipv6/ip6_input.c:534) ip6_input (include/linux/netfilter.h:325 include/linux/netfilter.h:319 net/ipv6/ip6_input.c:545) ipv6_rcv (include/net/dst.h:481 net/ipv6/ip6_input.c:119 include/linux/netfilter.h:325 include/linux/netfilter.h:319 net/ipv6/ip6_input.c:351) Freed by task 5074 on cpu 0 at 15.412249s: kmem_cache_free (include/linux/kasan.h:235 mm/slub.c:2780 mm/slub.c:6630 mm/slub.c:6757) tcp_v6_syn_recv_sock (net/ipv6/tcp_ipv6.c:1528) tcp_check_req (net/ipv4/tcp_minisocks.c:934) tcp_v6_rcv (net/ipv6/tcp_ipv6.c:1826) ip6_protocol_deliver_rcu (net/ipv6/ip6_input.c:479) ip6_input_finish (net/ipv6/ip6_input.c:534) Request socket migration has the same issue: reqsk_migrate_reset() transfers ireq->pktopts to the clone, which can be freed while another cpu holding a reference on the old request socket is still sending a SYNACK. The SYNACK timer itself is not an issue, because inet_csk_reqsk_queue_drop() calls timer_delete_sync(). Save the flowlabel of the SYN in the request socket instead, so that tcp_v6_send_synack() no longer needs ireq->pktopts. As a side effect, the flowlabel is also reflected for SYN packets reusing a TIME_WAIT socket, as ireq->pktopts is not set in this case. The Linux kernel CVE team has assigned CVE-2026-143276 to this issue. Affected and fixed versions =========================== Issue introduced in 4.4 with commit 079096f103faca2dd87342cca6f23d4b34da8871 and fixed in 6.12.120 with commit dd1d465e520dbe4c9dab2b3bac145e17ca3f3f9a Issue introduced in 4.4 with commit 079096f103faca2dd87342cca6f23d4b34da8871 and fixed in 6.18.66 with commit 3526fa03ae1e5a8f3107af2df4b1dbf9d035c560 Issue introduced in 4.4 with commit 079096f103faca2dd87342cca6f23d4b34da8871 and fixed in 7.3.7 with commit e417824c090f3e6aaa9379092b92a79830218166 Issue introduced in 4.4 with commit 079096f103faca2dd87342cca6f23d4b34da8871 and fixed in 7.4-rc2 with commit 8e069fd3fd396b89af417e50b359bc9892dd41cd 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-143276 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: include/linux/tcp.h net/ipv6/tcp_ipv6.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/dd1d465e520dbe4c9dab2b3bac145e17ca3f3f9a https://git.kernel.org/stable/c/3526fa03ae1e5a8f3107af2df4b1dbf9d035c560 https://git.kernel.org/stable/c/e417824c090f3e6aaa9379092b92a79830218166 https://git.kernel.org/stable/c/8e069fd3fd396b89af417e50b359bc9892dd41cd