• Vlad Buslov's avatar
    netfilter: nf_conntrack: allow early drop of offloaded UDP conns · df25455e
    Vlad Buslov authored
    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: default avatarVlad Buslov <vladbu@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    df25455e
nf_conntrack_core.c 73.6 KB