Description
In the Linux kernel, the following vulnerability has been resolved: xfrm: iptfs: fix skb leak on error in __input_process_payload() syzbot reported a memory leak of the received skb (and its sec_path extension) in the IP-TFS receive path. __input_process_payload() 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 (skb_copy_seq_read() 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 iptfs_reassem_cont() 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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
6c82d2433671819a550227bf65bfb6043e3d3305 to < ca89b6165034e1e935cdf465a78b22e42cb91b74affected6c82d2433671819a550227bf65bfb6043e3d3305 to < 0a6ee97ea602e4983229ba3295c088163136b8d3affected6c82d2433671819a550227bf65bfb6043e3d3305 to < 64e45ed926cdd017c9816c8006d9117a7194c7e9affected
Linux Linux
Default version status: affected
6.14affected0 to < 6.14unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected