Skip to contentSkip to conversation

CVE-2026-72320: netfilter: nft_lookup: fix catchall element handling with inverted lookups

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nft_lookup: fix catchall element handling with inverted lookups

nft_lookup_eval() decides whether a lookup matched (found) from the direct set lookup and priv->invert before falling back to the catchall element used by interval sets (e.g. nft_set_rbtree) for the open-ended default range. Since found is never recomputed after ext is replaced by the catchall lookup, inverted lookups (NFT_LOOKUP_F_INV, "!= @set") can wrongly match or wrongly skip the catchall element, producing the wrong verdict. Fold the catchall lookup into ext before computing found, matching the order already used by nft_objref_map_eval().

The Linux kernel CVE team has assigned CVE-2026-72320 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.13 with commit aaa31047a6d25da0fa101da1ed544e1247949b40 and fixed in 6.12.97 with commit 0ab8880865f9678eb6174e72c1fc4712e44c745c
	Issue introduced in 5.13 with commit aaa31047a6d25da0fa101da1ed544e1247949b40 and fixed in 6.18.40 with commit 238c612357b5a25f03eacf356f95034f8551f218
	Issue introduced in 5.13 with commit aaa31047a6d25da0fa101da1ed544e1247949b40 and fixed in 7.1.5 with commit ef0c7d4b04a0e6ad175323c24bc84e11470dd79d
	Issue introduced in 5.13 with commit aaa31047a6d25da0fa101da1ed544e1247949b40 and fixed in 7.2-rc3 with commit e6107a4c74b54cb33e3bce162a63048ae5a6b198

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-72320

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/nft_lookup.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/0ab8880865f9678eb6174e72c1fc4712e44c745c
	https://git.kernel.org/stable/c/238c612357b5a25f03eacf356f95034f8551f218
	https://git.kernel.org/stable/c/ef0c7d4b04a0e6ad175323c24bc84e11470dd79d
	https://git.kernel.org/stable/c/e6107a4c74b54cb33e3bce162a63048ae5a6b198