All reports
Medium

kernel: netfilter: nft_lookup: fix catchall element handling with inverted lookups

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-72320

Probability of exploitation in the next 30 days: 0.57%

FIRST EPSS · 2026-11-21

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().

A flaw was found in the Linux kernel's netfilter component, specifically within the nft_lookup functionality. This issue arises from incorrect handling of 'catchall' elements during 'inverted lookups' in the nft_lookup_eval() function. Due to a logic error where the lookup result is not recomputed, network packets may be wrongly matched or skipped, leading to incorrect application of network filtering rules. This could potentially allow unauthorized network traffic or cause denial of service by incorrectly dropping legitimate traffic.