CVE-2026-143301: xfrm: iptfs: fix skb leak on error in __input_process_payload()
In the Linux kernel, the following vulnerability has been resolved:
xfrm: iptfs: fix skb leak on error in inputprocesspayload()
syzbot reported a memory leak of the received skb (and its secpath extension) in the IP-TFS receive path.
inputprocesspayload() parses the inner packets of an IP-TFS payload and queues them on @sublist, which is only sent after the parsing loop. Three error paths inside the loop (skbcopyseqread() failure, invalid inner IPv4 header length, unknown IP version) jump to the "done" label, which is placed after the code sending @sublist.
Any skb already queued on @sublist is then neither delivered nor freed. This includes skbs added by iptfsreassemcont() before the call, newly allocated inner packets, and, since the received skb can be reused for the first inner packet, the received skb itself.
Move the "done" label before the trim/send code, so that inner packets parsed before the error are delivered as on the normal exit path. The received skb is then still freed (or consumed) as before when it was not reused.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems that process received IP-TFS payloads through the Linux kernel XFRM IP-TFS receive path are exposed. The issue occurs while parsing inner packets from an IP-TFS payload.
What input conditions can trigger the leak?
The leak can occur when parsing encounters an skb_copy_seq_read() failure, an invalid inner IPv4 header length, or an unknown inner IP version. Packets already queued before one of these errors may not be delivered or freed.
What is the practical impact of a triggered error?
Received and reassembled socket buffers, including their sec_path extensions, can be leaked. In some cases the received skb itself may have been reused for the first inner packet and can also be left unfreed.