{"id":"CVE-2026-23111","published":"2026-02-13T13:29:55Z","modified":"2026-11-10T12:41:49Z","title":"netfilter: nf_tables: fix inverted genmask check in nft_map_catchall_activate()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: fix inverted genmask check in nft_map_catchall_activate()\n\nnft_map_catchall_activate() has an inverted element activity check\ncompared to its non-catchall counterpart nft_mapelem_activate() and\ncompared to what is logically required.\n\nnft_map_catchall_activate() is called from the abort path to re-activate\ncatchall map elements that were deactivated during a failed transaction.\nIt should skip elements that are already active (they don't need\nre-activation) and process elements that are inactive (they need to be\nrestored). Instead, the current code does the opposite: it skips inactive\nelements and processes active ones.\n\nCompare the non-catchall activate callback, which is correct:\n\n  nft_mapelem_activate():\n    if (nft_set_elem_active(ext, iter->genmask))\n        return 0;   /* skip active, process inactive */\n\nWith the buggy catchall version:\n\n  nft_map_catchall_activate():\n    if (!nft_set_elem_active(ext, genmask))\n        continue;   /* skip inactive, process active */\n\nThe consequence is that when a DELSET operation is aborted,\nnft_setelem_data_activate() is never called for the catchall element.\nFor NFT_GOTO verdict elements, this means nft_data_hold() is never\ncalled to restore the chain->use reference count. Each abort cycle\npermanently decrements chain->use. Once chain->use reaches zero,\nDELCHAIN succeeds and frees the chain while catchall verdict elements\nstill reference it, resulting in a use-after-free.\n\nThis is exploitable for local privilege escalation from an unprivileged\nuser via user namespaces + nftables on distributions that enable\nCONFIG_USER_NS and CONFIG_NF_TABLES.\n\nFix by removing the negation so the check matches nft_mapelem_activate():\nskip active elements, process inactive ones.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01133,"percentile":0.67118,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-672","name":"Operation on a Resource after Expiration or Release"}],"references":[{"url":"https://git.kernel.org/stable/c/8c760ba4e36c750379d13569f23f5a6e185333f5","tags":[]},{"url":"https://git.kernel.org/stable/c/b9b6573421de51829f7ec1cce76d85f5f6fbbd7f","tags":[]},{"url":"https://git.kernel.org/stable/c/42c574c1504aa089a0a142e4c13859327570473d","tags":[]},{"url":"https://git.kernel.org/stable/c/1444ff890b4653add12f734ffeffc173d42862dd","tags":[]},{"url":"https://git.kernel.org/stable/c/8b68a45f9722f2babe9e7bad00aa74638addf081","tags":[]},{"url":"https://git.kernel.org/stable/c/f41c5d151078c5348271ffaf8e7410d96f2d82f8","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-253495.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]},{"url":"https://blog.exodusintel.com/2026/06/08/off-by-exploiting-a-use-after-free-in-the-linux-kernel/","tags":["technical-description"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-23111","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2439687","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-23111.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10996","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:18134","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10108","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:9112","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6570","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:62639","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:62641","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":13.42},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.46}]},"exploitSources":{"pocGithub":{"count":9,"skipped":1,"earliest":"2026-06-09","earliestUrl":"https://github.com/HORKimhab/CVE-2026-23111","repos":[{"name":"Knz-source/CVE-2026-23111-POC-noddlenpottato","url":"https://github.com/Knz-source/CVE-2026-23111-POC-noddlenpottato","stars":11,"created":"2026-08-12"},{"name":"Baba01hacker666/CVE-2026-23111","url":"https://github.com/Baba01hacker666/CVE-2026-23111","stars":7,"created":"2026-06-25"},{"name":"kinokopio/CVE-2026-23111","url":"https://github.com/kinokopio/CVE-2026-23111","stars":6,"created":"2026-10-19"},{"name":"ashrafzaryouh/CVE-2026-23111","url":"https://github.com/ashrafzaryouh/CVE-2026-23111","stars":5,"created":"2026-06-09"},{"name":"ishankaru/CVE-2026-23111-nftables-lab","url":"https://github.com/ishankaru/CVE-2026-23111-nftables-lab","stars":2,"created":"2026-06-11"}]},"first":{"date":"2026-06-09","source":"PoC-in-GitHub","url":"https://github.com/HORKimhab/CVE-2026-23111"},"provenance":"source"},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 25aa2ad37c2162be1c0bc4fe6397f7e4c13f00f8, < 8c760ba4e36c750379d13569f23f5a6e185333f5",">= d60be2da67d172aecf866302c91ea11533eca4d9, < b9b6573421de51829f7ec1cce76d85f5f6fbbd7f",">= 628bd3e49cba1c066228e23d71a852c23e26da73, < 42c574c1504aa089a0a142e4c13859327570473d",">= 628bd3e49cba1c066228e23d71a852c23e26da73, < 1444ff890b4653add12f734ffeffc173d42862dd",">= 628bd3e49cba1c066228e23d71a852c23e26da73, < 8b68a45f9722f2babe9e7bad00aa74638addf081",">= 628bd3e49cba1c066228e23d71a852c23e26da73, < f41c5d151078c5348271ffaf8e7410d96f2d82f8","bc9f791d2593f17e39f87c6e2b3a36549a3705b1","3c7ec098e3b588434a8b07ea9b5b36f04cef1f50","a136b7942ad2a50de708f76ea299ccb45ac7a7f9","dc7cdf8cbcbf8b13de1df93f356ec04cdeef5c41"]},{"vendor":"Linux","product":"Linux","versions":["6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-09T13:07:47.429787Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-6170","exploited":false,"provenance":"source"}}