netfilter: nf_flow_table: drop existing skb dst before skb_dst_set_noref()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2a79fd3908acd88e6cb0e620c314d7b1fee56a02 · < 8aecf0bbcc72605592134c917c222207d8f63ab0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_flow_table: drop existing skb dst before skb_dst_set_noref()
Incoming skbs passing through netfilter flowtable offload hooks (or XFRM offload path) might already carry a ref-counted dst_entry assigned during earlier RX or routing steps.
Calling skb_dst_set_noref() when skb already holds a ref-counted dst overwrites skb->_skb_refdst, leaking the previous dst_entry reference count and triggering a DEBUG_NET_WARN_ON_ONCE assertion in skb_dst_check_unset():
WARNING: at skb_dst_check_unset include/linux/skbuff.h:1170 WARNING: at skb_dst_set_noref include/linux/skbuff.h:1234 WARNING: at nf_flow_offload_ip_hook+0xf6c/0x2b60 net/netfilter/nf_flow_table_ip.c:864
Drop any existing dst_entry reference with skb_dst_drop(skb) before setting the non-referenced flowtable destination.
From the CVE record · Linux
Incoming packets passing through netfilter flowtable offload hooks or the XFRM offload path may already carry a reference-counted destination entry. Overwriting it can leak a reference and trigger a kernel warning. The input does not establish attacker access, authentication requirements, or user interaction.
Engineers running Linux kernels with netfilter flowtable or XFRM offload should check their deployments; affected versions were not provided.