inet: frags: drop fraglist conntrack references
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
inet: frags: drop fraglist conntrack references
Jakub added a warning in nf_conntrack_cleanup_net_list() to make debugging leaked skbs/conntrack references more obvious.
syzbot reports this as triggering, and I can also reproduce this via ip_defrag.sh selftest:
conntrack cleanup blocked for 60s WARNING: net/netfilter/nf_conntrack_core.c:2512 [..]
conntrack clenups gets stuck because there are skbs with still hold nf_conn references via their frag_list.
net.core.skb_defer_max=0 makes the hang disappear.
Eric Dumazet points out that skb_release_head_state() doesn't follow the fraglist.
From the CVE record · Linux
Reassembled fragmented packets in the Linux kernel can retain conntrack references through their fragment lists, blocking conntrack cleanup or module removal. The issue is reproducible through a packet-defragmentation selftest; the input does not establish whether an attacker can trigger it remotely, whether authentication is needed, or whether user interaction is required.
Engineers running Linux kernels with the affected fragment-handling and conntrack paths should check their vendor’s advisory; affected versions are not specified.