AZL-118433: CVE-2026-143262 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
tcp: ipv6: free ireq->ipv6opt after an RCU grace period
ireq->ipv6opt is only set by calipsoreqsetattr(), when a CALIPSO NetLabel mapping is configured.
Request socket migration (net.ipv4.tcpmigratereq=1, or a BPFSKREUSEPORTSELECTORMIGRATE program) clones the request socket with inetreqskclone(), so that the old request socket and its clone share the same ipv6opt, then reqskmigratereset() clears the pointer in the old one.
Another cpu holding a reference on the old request socket can still be using these options, sending a SYNACK from tcpv6sendsynack() or creating a child in tcpv6synrecvsock(), when the clone is freed. tcpv6reqskdestructor() frees ipv6opt with a plain kfree(), leading to a use-after-free.
Both readers already run under RCU, like their IPv4 counterparts. Use kfreercu() in tcpv6reqskdestructor(), as commit e3f33b0a1d89 ("ipv4: free inetopt and ireqopt after an RCU grace period") did for ireqopt.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In tcp_v6_reqsk_destructor(), use kfree_rcu() to free ireq->ipv6_opt after an RCU grace period.
Event History
Frequently Asked Questions
What conditions are needed for this issue to be reachable?
A CALIPSO NetLabel mapping must be configured so that ireq->ipv6_opt is set. Request socket migration must also occur, either through net.ipv4.tcp_migrate_req=1 or a BPF_SK_REUSEPORT_SELECT_OR_MIGRATE program.
What systems are most likely exposed?
Systems using IPv6 TCP together with CALIPSO NetLabel mappings and request socket migration are the relevant exposure set. The described race involves another CPU using the original request socket while its migrated clone is freed.
How can I determine whether request socket migration is enabled through the sysctl setting?
Check whether net.ipv4.tcp_migrate_req is set to 1. The description also identifies BPF_SK_REUSEPORT_SELECT_OR_MIGRATE programs as an alternative mechanism that can trigger request socket migration.