CVE-2026-90061: netfilter: nf_tables: skip double clone set expressions on element insert
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_tables: skip double clone set expressions on element insert
Both the dynset and newsetelem path clone the existing set expressions when setting set element expressions if no override expressions are provided. This results in a double clone, once to clone the template set expressions then another clone on the new element. Add a flag to annotate if userspace provides a override expression (ie. expression of the same type of the set but different configuration), otherwise borrow the existing expression from the set. Add conditionals to release expression iif they represent an override. Use this new override_exprs flag to dump the dynset expression override to userspace.
This simplifies the existing logic and it also fixes a bug with the connlimit expression which results in a module refcount imbalance WARNING splat when resorting on the default set expressions.
The Linux kernel CVE team has assigned CVE-2026-90061 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit 65038428b2c6c5be79d3f78a6b79c0cdc3a58a41 and fixed in 7.2.6 with commit 1e7fb6801d9cc826adcdb7fa0533c397730657f2 Issue introduced in 5.7 with commit 65038428b2c6c5be79d3f78a6b79c0cdc3a58a41 and fixed in 7.3-rc1 with commit 43559058d21e0493aa220ac167e0279334dea5f9
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-90061
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:
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_dynset.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/1e7fb6801d9cc826adcdb7fa0533c397730657f2 https://git.kernel.org/stable/c/43559058d21e0493aa220ac167e0279334dea5f9