]> www.infradead.org Git - users/dwmw2/linux.git/commit
netfilter: nf_conntrack: allow early drop of offloaded UDP conns
authorVlad Buslov <vladbu@nvidia.com>
Wed, 1 Feb 2023 16:31:00 +0000 (17:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2023 09:31:24 +0000 (09:31 +0000)
commitdf25455e5a489764508942b77b77de8f550e92cd
tree861c404053539b3d401e46b2086c5517dd0da99a
parent6a9bad0069cf306f3df6ac53cf02438d4e15f296
netfilter: nf_conntrack: allow early drop of offloaded UDP conns

Both synchronous early drop algorithm and asynchronous gc worker completely
ignore connections with IPS_OFFLOAD_BIT status bit set. With new
functionality that enabled UDP NEW connection offload in action CT
malicious user can flood the conntrack table with offloaded UDP connections
by just sending a single packet per 5tuple because such connections can no
longer be deleted by early drop algorithm.

To mitigate the issue allow both early drop and gc to consider offloaded
UDP connections for deletion.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_core.c