{"id":"CVE-2026-23231","published":"2026-03-04T12:58:42Z","modified":"2026-11-23T07:58:38Z","title":"netfilter: nf_tables: fix use-after-free in nf_tables_addchain()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: fix use-after-free in nf_tables_addchain()\n\nnf_tables_addchain() publishes the chain to table->chains via\nlist_add_tail_rcu() (in nft_chain_add()) before registering hooks.\nIf nf_tables_register_hook() then fails, the error path calls\nnft_chain_del() (list_del_rcu()) followed by nf_tables_chain_destroy()\nwith no RCU grace period in between.\n\nThis creates two use-after-free conditions:\n\n 1) Control-plane: nf_tables_dump_chains() traverses table->chains\n    under rcu_read_lock(). A concurrent dump can still be walking\n    the chain when the error path frees it.\n\n 2) Packet path: for NFPROTO_INET, nf_register_net_hook() briefly\n    installs the IPv4 hook before IPv6 registration fails.  Packets\n    entering nft_do_chain() via the transient IPv4 hook can still be\n    dereferencing chain->blob_gen_X when the error path frees the\n    chain.\n\nAdd synchronize_rcu() between nft_chain_del() and the chain destroy\nso that all RCU readers -- both dump threads and in-flight packet\nevaluation -- have finished before the chain is freed.","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.01045,"percentile":0.64824,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/d719eb1c1dd2e05dbcf5c45d580a4361fb42ba5b","tags":[]},{"url":"https://git.kernel.org/stable/c/7e3de296af465b65fb941133459dcbdedab7f497","tags":[]},{"url":"https://git.kernel.org/stable/c/2a6586ecfa4ce1413daaafee250d2590e05f1a33","tags":[]},{"url":"https://git.kernel.org/stable/c/7017745068a9068904e1e7a1b170a5785647cc81","tags":[]},{"url":"https://git.kernel.org/stable/c/f3fe58ce37926a10115ede527d59b91bcc05400a","tags":[]},{"url":"https://git.kernel.org/stable/c/dbd0af8083dd201f07c49110b2ee93710abdff28","tags":[]},{"url":"https://git.kernel.org/stable/c/2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b","tags":[]},{"url":"https://git.kernel.org/stable/c/71e99ee20fc3f662555118cf1159443250647533","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://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[]}],"priority":{"score":23.4,"factors":[{"name":"EPSS percentile","points":12.96},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.46}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2026-05-04"},"first":{"date":"2026-05-04","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/52549"},"provenance":"source"},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < d719eb1c1dd2e05dbcf5c45d580a4361fb42ba5b",">= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < 7e3de296af465b65fb941133459dcbdedab7f497",">= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < 2a6586ecfa4ce1413daaafee250d2590e05f1a33",">= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < 7017745068a9068904e1e7a1b170a5785647cc81",">= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < f3fe58ce37926a10115ede527d59b91bcc05400a",">= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < dbd0af8083dd201f07c49110b2ee93710abdff28",">= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < 2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b",">= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, < 71e99ee20fc3f662555118cf1159443250647533"]},{"vendor":"Linux","product":"Linux","versions":["3.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-16T20:18:23.569815Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-9401","exploited":false,"provenance":"source"},"exploits":[{"id":52549,"url":"https://www.exploit-db.com/exploits/52549","title":"Linux nf_tables 6.19.3 - Local Privilege Escalation (LPE)","date":"2026-05-04","verified":false,"provenance":"source"}]}