CVE-2026-100050: ipv6: defrag: orphan skb before queuing
In the Linux kernel, the following vulnerability has been resolved:
ipv6: defrag: orphan skb before queuing
IPv4 and nfconntrack fragment queues orphan skbs before returning -EINPROGRESS, but ip6fragqueue() leaves the socket association intact.
Commit 18685451fc4e ("inet: inetdefrag: prevent sk release while still in use") moved skborphan() into ipfragqueue() and nfctfrag6queue(), but missed ip6fragqueue().
Without orphaning, inetfragreasmfinish() clears fp->sk on fraglist skbs but leaves fp->destructor set to sockpfree. Freeing the reassembled skb then calls sockpfree() with a NULL socket. A socket using SOCKRCUFREE may also be released while its fragment is queued, leaving a stale socket pointer; this is a second consequence of the same missing orphan.
Orphan the skb before returning -EINPROGRESS so the queued fragment no longer retains the socket association or destructor.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In IPv6 defragmentation, orphan the skb in ip6_frag_queue() before queuing it or returning -EINPROGRESS, so the queued fragment no longer retains the socket association or destructor.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Linux kernel systems that process IPv6 packets requiring defragmentation can be exposed when fragments are queued. The affected path retains a socket association on queued IPv6 fragments when it should orphan the skb.
What condition is needed to trigger the vulnerable path?
The issue requires an IPv6 fragment to be queued, causing ip6_frag_queue() to return -EINPROGRESS. The queued skb can then retain its socket pointer and sock_pfree destructor instead of being orphaned.
What can happen when the queued fragments are later reassembled or freed?
During reassembly, the socket pointer on fragment-list skbs may be cleared while the sock_pfree destructor remains set. Freeing the reassembled skb can then invoke sock_pfree with a NULL socket; sockets using SOCK_RCU_FREE may also leave a stale socket pointer while a fragment remains queued.