mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
netfilter: nf_tables: fix underflow in chain reference counter
commitb389139f12upstream. Set element addition error path decrements reference counter on chains twice: once on element release and again via nft_data_release(). Then,d6b478666f("netfilter: nf_tables: fix underflow in object reference counter") incorrectly fixed this by removing the stateful object reference count decrement. Restore the stateful object decrement as inb91d903688("netfilter: nf_tables: fix leaking object reference count") and let nft_data_release() decrement the chain reference counter, so this is done only once. Fixes:d6b478666f("netfilter: nf_tables: fix underflow in object reference counter") Fixes:628bd3e49c("netfilter: nf_tables: drop map element references from preparation phase") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
35651fde1a
commit
b068314fd8
1 changed files with 3 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue