{"id":"CVE-2026-143276","state":"PUBLISHED","title":"tcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack()\n\nWhen IPV6_FL_F_REFLECT is set on a listener, or the\nnet.ipv6.flowlabel_reflect sysctl has FLOWLABEL_REFLECT_ESTABLISHED,\ntcp_v6_send_synack() reflects the flowlabel of the SYN packet,\nreading it from the skb stored in ireq->pktopts.\n\nSince commit 079096f103fa (\"tcp/dccp: install syn_recv requests\ninto ehash table\"), request sockets are processed without holding\nthe listener lock. A cpu can then process a retransmitted SYN for a\nrequest socket, and send a SYNACK from tcp_check_req(), while another\ncpu receives the ACK completing the 3WHS. tcp_v6_syn_recv_sock()\nconsumes ireq->pktopts when it wins the hashdance, and the first cpu\nreads a freed skb:\n\n  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)\n  Read of size 8 at addr ffff88802b08b608 by task poc-ipv6-pktopt/5076\n\n  Call Trace:\n   <IRQ>\n   tcp_v6_send_synack (include/linux/skbuff.h:3152 include/linux/ipv6.h:110 net/ipv6/tcp_ipv6.c:582)\n   tcp_rtx_synack (net/ipv4/tcp_output.c:4719)\n   tcp_check_req (net/ipv4/tcp_minisocks.c:762)\n   tcp_v6_rcv (net/ipv6/tcp_ipv6.c:1826)\n   ip6_protocol_deliver_rcu (net/ipv6/ip6_input.c:479)\n   ip6_input_finish (net/ipv6/ip6_input.c:534)\n   ip6_input (include/linux/netfilter.h:325 include/linux/netfilter.h:319 net/ipv6/ip6_input.c:545)\n   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)\n\n  Freed by task 5074 on cpu 0 at 15.412249s:\n   kmem_cache_free (include/linux/kasan.h:235 mm/slub.c:2780 mm/slub.c:6630 mm/slub.c:6757)\n   tcp_v6_syn_recv_sock (net/ipv6/tcp_ipv6.c:1528)\n   tcp_check_req (net/ipv4/tcp_minisocks.c:934)\n   tcp_v6_rcv (net/ipv6/tcp_ipv6.c:1826)\n   ip6_protocol_deliver_rcu (net/ipv6/ip6_input.c:479)\n   ip6_input_finish (net/ipv6/ip6_input.c:534)\n\nRequest socket migration has the same issue: reqsk_migrate_reset()\ntransfers ireq->pktopts to the clone, which can be freed while\nanother cpu holding a reference on the old request socket is still\nsending a SYNACK.\n\nThe SYNACK timer itself is not an issue, because\ninet_csk_reqsk_queue_drop() calls timer_delete_sync().\n\nSave the flowlabel of the SYN in the request socket instead, so that\ntcp_v6_send_synack() no longer needs ireq->pktopts.\n\nAs a side effect, the flowlabel is also reflected for SYN packets\nreusing a TIME_WAIT socket, as ireq->pktopts is not set in this case.","publishedAt":"2026-12-03T09:21:16.491Z","updatedAt":"2026-12-03T09:21:16.491Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"079096f103faca2dd87342cca6f23d4b34da8871","status":"affected","lessThan":"dd1d465e520dbe4c9dab2b3bac145e17ca3f3f9a","versionType":"git"},{"version":"079096f103faca2dd87342cca6f23d4b34da8871","status":"affected","lessThan":"3526fa03ae1e5a8f3107af2df4b1dbf9d035c560","versionType":"git"},{"version":"079096f103faca2dd87342cca6f23d4b34da8871","status":"affected","lessThan":"e417824c090f3e6aaa9379092b92a79830218166","versionType":"git"},{"version":"079096f103faca2dd87342cca6f23d4b34da8871","status":"affected","lessThan":"8e069fd3fd396b89af417e50b359bc9892dd41cd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/tcp.h","net/ipv6/tcp_ipv6.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.4","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/tcp.h","net/ipv6/tcp_ipv6.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-12-03T09:42:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143276.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143276","state":"PUBLISHED","datePublished":"2026-12-03T09:21:16.491Z","dateUpdated":"2026-12-03T09:21:16.491Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.364Z"},"containers":{"cna":{"title":"tcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack()\n\nWhen IPV6_FL_F_REFLECT is set on a listener, or the\nnet.ipv6.flowlabel_reflect sysctl has FLOWLABEL_REFLECT_ESTABLISHED,\ntcp_v6_send_synack() reflects the flowlabel of the SYN packet,\nreading it from the skb stored in ireq->pktopts.\n\nSince commit 079096f103fa (\"tcp/dccp: install syn_recv requests\ninto ehash table\"), request sockets are processed without holding\nthe listener lock. A cpu can then process a retransmitted SYN for a\nrequest socket, and send a SYNACK from tcp_check_req(), while another\ncpu receives the ACK completing the 3WHS. tcp_v6_syn_recv_sock()\nconsumes ireq->pktopts when it wins the hashdance, and the first cpu\nreads a freed skb:\n\n  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)\n  Read of size 8 at addr ffff88802b08b608 by task poc-ipv6-pktopt/5076\n\n  Call Trace:\n   <IRQ>\n   tcp_v6_send_synack (include/linux/skbuff.h:3152 include/linux/ipv6.h:110 net/ipv6/tcp_ipv6.c:582)\n   tcp_rtx_synack (net/ipv4/tcp_output.c:4719)\n   tcp_check_req (net/ipv4/tcp_minisocks.c:762)\n   tcp_v6_rcv (net/ipv6/tcp_ipv6.c:1826)\n   ip6_protocol_deliver_rcu (net/ipv6/ip6_input.c:479)\n   ip6_input_finish (net/ipv6/ip6_input.c:534)\n   ip6_input (include/linux/netfilter.h:325 include/linux/netfilter.h:319 net/ipv6/ip6_input.c:545)\n   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)\n\n  Freed by task 5074 on cpu 0 at 15.412249s:\n   kmem_cache_free (include/linux/kasan.h:235 mm/slub.c:2780 mm/slub.c:6630 mm/slub.c:6757)\n   tcp_v6_syn_recv_sock (net/ipv6/tcp_ipv6.c:1528)\n   tcp_check_req (net/ipv4/tcp_minisocks.c:934)\n   tcp_v6_rcv (net/ipv6/tcp_ipv6.c:1826)\n   ip6_protocol_deliver_rcu (net/ipv6/ip6_input.c:479)\n   ip6_input_finish (net/ipv6/ip6_input.c:534)\n\nRequest socket migration has the same issue: reqsk_migrate_reset()\ntransfers ireq->pktopts to the clone, which can be freed while\nanother cpu holding a reference on the old request socket is still\nsending a SYNACK.\n\nThe SYNACK timer itself is not an issue, because\ninet_csk_reqsk_queue_drop() calls timer_delete_sync().\n\nSave the flowlabel of the SYN in the request socket instead, so that\ntcp_v6_send_synack() no longer needs ireq->pktopts.\n\nAs a side effect, the flowlabel is also reflected for SYN packets\nreusing a TIME_WAIT socket, as ireq->pktopts is not set in this case."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"079096f103faca2dd87342cca6f23d4b34da8871","status":"affected","lessThan":"dd1d465e520dbe4c9dab2b3bac145e17ca3f3f9a","versionType":"git"},{"version":"079096f103faca2dd87342cca6f23d4b34da8871","status":"affected","lessThan":"3526fa03ae1e5a8f3107af2df4b1dbf9d035c560","versionType":"git"},{"version":"079096f103faca2dd87342cca6f23d4b34da8871","status":"affected","lessThan":"e417824c090f3e6aaa9379092b92a79830218166","versionType":"git"},{"version":"079096f103faca2dd87342cca6f23d4b34da8871","status":"affected","lessThan":"8e069fd3fd396b89af417e50b359bc9892dd41cd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/tcp.h","net/ipv6/tcp_ipv6.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.4","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/tcp.h","net/ipv6/tcp_ipv6.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/dd1d465e520dbe4c9dab2b3bac145e17ca3f3f9a"},{"url":"https://git.kernel.org/stable/c/3526fa03ae1e5a8f3107af2df4b1dbf9d035c560"},{"url":"https://git.kernel.org/stable/c/e417824c090f3e6aaa9379092b92a79830218166"},{"url":"https://git.kernel.org/stable/c/8e069fd3fd396b89af417e50b359bc9892dd41cd"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:16.491Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}