summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2022-01-23 17:24:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-27 15:39:01 +0300
commit2e25c46c6eef4acb9156c1e2fb00e8330273288c (patch)
tree78824a8bfa2f9b87b812a527e303b83846880d4d /fs
parent2b273d1fd18ebebdc5e99139f0c89b142d40ea9c (diff)
downloadlinux-2e25c46c6eef4acb9156c1e2fb00e8330273288c.tar.xz
netfilter: nft_ct: fix use after free when attaching zone template
commit 34243b9ec856309339172b1507379074156947e8 upstream. The conversion erroneously removed the refcount increment. In case we can use the percpu template, we need to increment the refcount, else it will be released when the skb gets freed. In case the slowpath is taken, the new template already has a refcount of 1. Fixes: 719774377622 ("netfilter: conntrack: convert to refcount_t api") Reported-by: kernel test robot <oliver.sang@intel.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions