CVE-2026-23111
netfilter: nf_tables: fix inverted genmask check in nft_map_catchall_activate()
Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: fix inverted genmask check in nft_map_catchall_activate() nft_map_catchall_activate() has an inverted element activity check compared to its non-catchall counterpart nft_mapelem_activate() and compared to what is logically required. nft_map_catchall_activate() is called from the abort path to re-activate catchall map elements that were deactivated during a failed transaction. It should skip elements that are already active (they don't need re-activation) and process elements that are inactive (they need to be restored). Instead, the current code does the opposite: it skips inactive elements and processes active ones. Compare the non-catchall activate callback, which is correct: nft_mapelem_activate(): if (nft_set_elem_active(ext, iter->genmask)) return 0; /* skip active, process inactive */ With the buggy catchall version: nft_map_catchall_activate(): if (!nft_set_elem_active(ext, genmask)) continue; /* skip inactive, process active */ The consequence is that when a DELSET operation is aborted, nft_setelem_data_activate() is never called for the catchall element. For NFT_GOTO verdict elements, this means nft_data_hold() is never called to restore the chain->use reference count. Each abort cycle permanently decrements chain->use. Once chain->use reaches zero, DELCHAIN succeeds and frees the chain while catchall verdict elements still reference it, resulting in a use-after-free. This is exploitable for local privilege escalation from an unprivileged user via user namespaces + nftables on distributions that enable CONFIG_USER_NS and CONFIG_NF_TABLES. Fix by removing the negation so the check matches nft_mapelem_activate(): skip active elements, process inactive ones.
CVSS Vector Breakdown
AV:LAttack VectorAC:LAttack ComplexityPR:LPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
Attack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
2 techniquesReferences
- MEGANews. Cамые важные события в мире инфосека за июньru-ru·Хакер (xakep.ru)· Incident App Store data-breach
- Security Week 2625: непростой набор патчей от Microsoftru·Хабр — Информационная безопасность· PoC Windows Nightmare Eclipse (Chaotic Eclipse)
- ⚡ Weekly Recap: Chrome 0-Day, UniFi Exploits, macOS Stealers, VPN Flaw and Moreen·The Hacker News· Exploited Chrome (V8) UNC6240 (ShinyHunters)
- Уязвимость в ядре Linux возникла всего из-за одного символаru-ru·Хакер (xakep.ru)· PoC Linux kernel nf_tables ics-ot-iot
- High-severity vulnerability in Linux caused by a single errant characteren·Ars Technica (Security)· PoC Linux kernel privilege-escalation
- One-Character Linux Kernel Flaw Enables Local Root Access, Exploits Now Publicen·The Hacker News· PoC Linux kernel nf_tables (netfilter packet filtering) privilege-escalation
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2026-23111 and every CVE in our database. Create a free account — no credit card required.
Create Free Account