CVE-2026-23392: netfilter: nf_tables: release flowtable after rcu grace period on error
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
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.
The Linux kernel CVE team has assigned CVE-2026-23392 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.16 with commit 3b49e2e94e6ebb8b23d0955d9e898254455734f8 and fixed in 6.1.167 with commit d2632de96ccb066e0131ad1494241b9c281c60b8 Issue introduced in 4.16 with commit 3b49e2e94e6ebb8b23d0955d9e898254455734f8 and fixed in 6.6.130 with commit adee3436ccd29f1e514c028899e400cbc6d84065 Issue introduced in 4.16 with commit 3b49e2e94e6ebb8b23d0955d9e898254455734f8 and fixed in 6.12.78 with commit 7e3955b282eae20d61c75e499c75eade51c20060 Issue introduced in 4.16 with commit 3b49e2e94e6ebb8b23d0955d9e898254455734f8 and fixed in 6.18.20 with commit c8092edb9a11f20f95ccceeb9422b7dd0df337bd Issue introduced in 4.16 with commit 3b49e2e94e6ebb8b23d0955d9e898254455734f8 and fixed in 6.19.10 with commit e78a2dcc7cfb87b64a631441ca7681492b347ef6 Issue introduced in 4.16 with commit 3b49e2e94e6ebb8b23d0955d9e898254455734f8 and fixed in 7.0-rc5 with commit d73f4b53aaaea4c95f245e491aa5eeb8a21874ce
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23392
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/netfilter/nf_tables_api.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d2632de96ccb066e0131ad1494241b9c281c60b8 https://git.kernel.org/stable/c/adee3436ccd29f1e514c028899e400cbc6d84065 https://git.kernel.org/stable/c/7e3955b282eae20d61c75e499c75eade51c20060 https://git.kernel.org/stable/c/c8092edb9a11f20f95ccceeb9422b7dd0df337bd https://git.kernel.org/stable/c/e78a2dcc7cfb87b64a631441ca7681492b347ef6 https://git.kernel.org/stable/c/d73f4b53aaaea4c95f245e491aa5eeb8a21874ce