All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nft 0/2] netfilter: fix nf_ct_expect_alloc() reference leaks
@ 2026-05-06 12:16 Li Xiasong
  2026-05-06 12:16 ` [PATCH nft 1/2] netfilter: nf_conntrack_sip: fix missing expect put in REGISTER path Li Xiasong
  2026-05-06 12:16 ` [PATCH nft 2/2] netfilter: nft_ct: fix missing expect put in obj eval Li Xiasong
  0 siblings, 2 replies; 5+ messages in thread
From: Li Xiasong @ 2026-05-06 12:16 UTC (permalink / raw)
  To: netfilter-devel
  Cc: Pablo Neira Ayuso, Florian Westphal, Phil Sutter, coreteam,
	yuehaibing, zhangchangzhong, weiyongjun1

this series fixes two nf_ct_expect_alloc() reference leaks in netfilter.

Patch 1 fixes an error path leak in SIP REGISTER handling:
when helper lookup fails after expectation allocation, the function
returns without dropping the local reference.

Patch 2 fixes a leak in nft_ct expectation object evaluation:
the local reference obtained from nf_ct_expect_alloc() is never put
after nf_ct_expect_related(), regardless of success or failure.

Li Xiasong (2):
  netfilter: nf_conntrack_sip: fix missing expect put in REGISTER path
  netfilter: nft_ct: fix missing expect put in obj eval

 net/netfilter/nf_conntrack_sip.c | 4 +++-
 net/netfilter/nft_ct.c           | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-06 14:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06 12:16 [PATCH nft 0/2] netfilter: fix nf_ct_expect_alloc() reference leaks Li Xiasong
2026-05-06 12:16 ` [PATCH nft 1/2] netfilter: nf_conntrack_sip: fix missing expect put in REGISTER path Li Xiasong
2026-05-06 13:33   ` Florian Westphal
2026-05-06 14:50     ` Pablo Neira Ayuso
2026-05-06 12:16 ` [PATCH nft 2/2] netfilter: nft_ct: fix missing expect put in obj eval Li Xiasong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.