The nft ct expectation object can attach its internal helper to an unconfirmed expected child, then arm the next expectation with that child as master, resulting in a long chain of sibling conntracks. This custom ct expectation support barely works for one limited use-case, skip expectation creation to address this issue. Fixes: 857b46027d6f ("netfilter: nft_ct: add ct expectations support") Reported-by: Daehyeon Ko <4ncienth@gmail.com> Link: https://patch.msgid.link/20261007013301.2524415-1-4ncienth@gmail.com/ Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nft_ct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c index 5a8db5592036..a6013d6a110f 100644 --- a/net/netfilter/nft_ct.c +++ b/net/netfilter/nft_ct.c @@ -1254,7 +1254,7 @@ static int ct_expect_help(struct sk_buff *skb, unsigned int protoff, int ret = NF_ACCEPT; u16 l3num; - if (nf_ct_is_confirmed(ct)) + if (nf_ct_is_confirmed(ct) || ct->master) return NF_ACCEPT; expect_data = nfct_help_data(ct); -- 2.47.3