summaryrefslogtreecommitdiff
path: root/Documentation/networking/timestamping/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2026-03-17 20:00:26 +0100
committerFlorian Westphal <fw@strlen.de>2026-03-19 10:26:31 +0100
commitd73f4b53aaaea4c95f245e491aa5eeb8a21874ce (patch)
tree46515e290da0dde27a142b7bec6e4958c5a807f9 /Documentation/networking/timestamping/git@git.tavy.me:linux.git
parent24f90fa3994b992d1a09003a3db2599330a5232a (diff)
netfilter: nf_tables: release flowtable after rcu grace period on error
Call synchronize_rcu() after unregistering the hooks from error path, since a hook that already refers to this flowtable can be already registered, exposing this flowtable to packet path and nfnetlink_hook control plane. This error path is rare, it should only happen by reaching the maximum number hooks or by failing to set up to hardware offload, just call synchronize_rcu(). There is a check for already used device hooks by different flowtable that could result in EEXIST at this late stage. The hook parser can be updated to perform this check earlier to this error path really becomes rarely exercised. Uncovered by KASAN reported as use-after-free from nfnetlink_hook path when dumping hooks. Fixes: 3b49e2e94e6e ("netfilter: nf_tables: add flow table netlink frontend") Reported-by: Yiming Qian <yimingqian591@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'Documentation/networking/timestamping/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions