{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143262","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.363Z","datePublished":"2026-12-03T09:21:07.292Z","dateUpdated":"2026-12-04T03:31:57.946Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:31:57.946Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: ipv6: free ireq->ipv6_opt after an RCU grace period\n\nireq->ipv6_opt is only set by calipso_req_setattr(), when a CALIPSO\nNetLabel mapping is configured.\n\nRequest socket migration (net.ipv4.tcp_migrate_req=1, or a\nBPF_SK_REUSEPORT_SELECT_OR_MIGRATE program) clones the request\nsocket with inet_reqsk_clone(), so that the old request socket and\nits clone share the same ipv6_opt, then reqsk_migrate_reset() clears\nthe pointer in the old one.\n\nAnother cpu holding a reference on the old request socket can still\nbe using these options, sending a SYNACK from tcp_v6_send_synack()\nor creating a child in tcp_v6_syn_recv_sock(), when the clone\nis freed. tcp_v6_reqsk_destructor() frees ipv6_opt with a plain\nkfree(), leading to a use-after-free.\n\nBoth readers already run under RCU, like their IPv4 counterparts.\nUse kfree_rcu() in tcp_v6_reqsk_destructor(), as commit e3f33b0a1d89\n(\"ipv4: free inet_opt and ireq_opt after an RCU grace period\") did\nfor ireq_opt."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - A remote IPv6 TCP SYN enters tcp_v6_rcv() and tcp_v6_route_req(), and selinux_netlbl_inet_conn_request() calls calipso_req_setattr() to store CALIPSO hop options in ireq->ipv6_opt. A retransmitted SYN or ACK then reaches tcp_v6_send_synack() or tcp_v6_syn_recv_sock() while the migrated request's tcp_v6_reqsk_destructor() frees that block; ipv6_push_exthdr() copies those bytes into the SYN-ACK returned to the peer.\nAC:H - calipso_req_setattr() fills ireq->ipv6_opt only when netlbl_domhsh_getentry_af6() returns CALIPSO. inet_reqsk_clone() shares that pointer and reqsk_migrate_reset() clears the old owner only in reqsk_timer_handler() or inet_csk_complete_hashdance(), after the listener leaves TCP_LISTEN, which needs tcp_migrate_req (default 0) or BPF_SK_REUSEPORT_SELECT_OR_MIGRATE. The peer can retransmit the SYN but cannot close the listener or enable migration.\nPR:N - tcp_v6_rcv() and tcp_check_req() handle the SYN and the retransmitted SYN or ACK before accept(), and calipso_req_setattr() only requires a listening sock. The peer sends no uid, capability, or credential.\nUI:N - The peer sends the IPv6 SYN that tcp_v6_route_req() turns into a labeled request and the retransmitted SYN or ACK that tcp_v6_send_synack() or tcp_v6_syn_recv_sock() consumes. No other user mounts media, opens a file, or accepts a prompt.\nS:U - The kfree'd ipv6_txoptions and the child socket created by tcp_v6_syn_recv_sock() belong to the same host kernel that received the SYN. The corruption stays in that kernel.\nC:H - tcp_v6_reqsk_destructor() kfree()s the ipv6_txoptions still loaded by a CPU in tcp_v6_send_synack(). ip6_xmit() reads opt_nflen and opt_flen, and ipv6_push_exthdr() memcpy()s hopopt for ipv6_optlen() bytes into the SYN-ACK. ipv6_dup_options() sock_kmemdup()s opt->tot_len onto the child. Reclaiming that kmalloc slab returns heap contents to the peer.\nI:H - Reclaiming the kfree'd ipv6_txoptions lets the attacker set srcrt, hopopt and hdrlen. ipv6_push_nfrag_opts() then calls ipv6_push_rthdr0(), which with hdrlen 0 or 1 writes an in6_addr at phdr->addr[-1], before the pushed header, and ipv6_push_exthdr() memcpy()s through hopopt. ipv6_dup_options() also sock_kmemdup()s the sprayed tot_len into the child socket.\nA:H - Use of the kfree'd ipv6_txoptions in ip6_xmit() or ipv6_dup_options() faults or, when a sprayed hdrlen exceeds the SYN-ACK headroom, skb_push() in ipv6_push_exthdr() calls skb_under_panic(). Either path oopses the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/tcp_ipv6.c"],"versions":[{"version":"c905dee62232db583b50fe214080b98db623151e","lessThan":"e1952acabcf9bf5b93150a38837b573186e0e299","status":"affected","versionType":"git"},{"version":"c905dee62232db583b50fe214080b98db623151e","lessThan":"929a2b016ba9ba9c859a65038e212d2ce0ceee36","status":"affected","versionType":"git"},{"version":"c905dee62232db583b50fe214080b98db623151e","lessThan":"14f121b0dcd845b50bfc3baa98443f39c08b91af","status":"affected","versionType":"git"},{"version":"c905dee62232db583b50fe214080b98db623151e","lessThan":"82378cf642bd722d552c200e40aca1596b12d132","status":"affected","versionType":"git"},{"version":"c905dee62232db583b50fe214080b98db623151e","lessThan":"fafbc4051123d5459ea6950899cec08ed946e278","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/tcp_ipv6.c"],"versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/e1952acabcf9bf5b93150a38837b573186e0e299"},{"url":"https://git.kernel.org/stable/c/929a2b016ba9ba9c859a65038e212d2ce0ceee36"},{"url":"https://git.kernel.org/stable/c/14f121b0dcd845b50bfc3baa98443f39c08b91af"},{"url":"https://git.kernel.org/stable/c/82378cf642bd722d552c200e40aca1596b12d132"},{"url":"https://git.kernel.org/stable/c/fafbc4051123d5459ea6950899cec08ed946e278"}],"title":"tcp: ipv6: free ireq->ipv6_opt after an RCU grace period","x_generator":{"engine":"bippy-1.2.0"}}}}