netfilter: nft_lookup: fix catchall element handling with inverted lookups
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().
CVE-2026-72320
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-72320
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "aaa31047a6d25da0fa101da1ed544e1247949b40",
"lessThan": "65d35cb555f40529a9edc6bf4beaa3bee917f015",
"versionType": "git"
},
{
"status": "affected",
"version": "aaa31047a6d25da0fa101da1ed544e1247949b40",
"lessThan": "0ab8880865f9678eb6174e72c1fc4712e44c745c",
"versionType": "git"
},
{
"status": "affected",
"version": "aaa31047a6d25da0fa101da1ed544e1247949b40",
"lessThan": "238c612357b5a25f03eacf356f95034f8551f218",
"versionType": "git"
},
{
"status": "affected",
"version": "aaa31047a6d25da0fa101da1ed544e1247949b40",
"lessThan": "ef0c7d4b04a0e6ad175323c24bc84e11470dd79d",
"versionType": "git"
},
{
"status": "affected",
"version": "aaa31047a6d25da0fa101da1ed544e1247949b40",
"lessThan": "e6107a4c74b54cb33e3bce162a63048ae5a6b198",
"versionType": "git"
}
],
"programFiles": [
"net/netfilter/nft_lookup.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.13"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.13",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.97",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.40",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.5",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"net/netfilter/nft_lookup.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-72320
Source reference:
/cveMetadata/cveId
Publisher severity
critical
Source reference: /containers/cna/metrics
- Event
- #46499 · Revision 1
- Added to Heist Feed
- Publisher date