{"id":"CVE-2026-23231","aliases":["CVE-2026-23231"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: nf_tables: fix use-after-free in nf_tables_addchain()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnetfilter: nf_tables: corrige uso después de liberación en nf_tables_addchain()\n\nnf_tables_addchain() publica la cadena en table-&gt;chains a través de list_add_tail_rcu() (en nft_chain_add()) antes de registrar los ganchos. Si nf_tables_register_hook() falla entonces, la ruta de error llama a nft_chain_del() (list_del_rcu()) seguido de nf_tables_chain_destroy() sin un período de gracia RCU intermedio.\n\nEsto crea dos condiciones de uso después de liberación:\n\n1) Plano de control: nf_tables_dump_chains() recorre table-&gt;chains bajo rcu_read_lock(). Un volcado concurrente aún puede estar recorriendo la cadena cuando la ruta de error la libera.\n\n2) Ruta de paquetes: para NFPROTO_INET, nf_register_net_hook() instala brevemente el gancho IPv4 antes de que falle el registro de IPv6. Los paquetes que entran en nft_do_chain() a través del gancho IPv4 transitorio aún pueden estar desreferenciando chain-&gt;blob_gen_X cuando la ruta de error libera la cadena.\n\nAñadir synchronize_rcu() entre nft_chain_del() y la destrucción de la cadena para que todos los lectores RCU -- tanto los hilos de volcado como la evaluación de paquetes en curso -- hayan terminado antes de que la cadena sea liberada.","source":"nvd"}],"published":"2026-03-04T12:58:42.029Z","modified":"2026-11-23T08:17:14.987Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"91c7b38dc9f0de4f7f444b796d14476bc12df7bc","fixed":"d719eb1c1dd2e05dbcf5c45d580a4361fb42ba5b","status":"affected"},{"type":"git","introduced":"91c7b38dc9f0de4f7f444b796d14476bc12df7bc","fixed":"7e3de296af465b65fb941133459dcbdedab7f497","status":"affected"},{"type":"git","introduced":"91c7b38dc9f0de4f7f444b796d14476bc12df7bc","fixed":"2a6586ecfa4ce1413daaafee250d2590e05f1a33","status":"affected"},{"type":"git","introduced":"91c7b38dc9f0de4f7f444b796d14476bc12df7bc","fixed":"7017745068a9068904e1e7a1b170a5785647cc81","status":"affected"},{"type":"git","introduced":"91c7b38dc9f0de4f7f444b796d14476bc12df7bc","fixed":"f3fe58ce37926a10115ede527d59b91bcc05400a","status":"affected"},{"type":"git","introduced":"91c7b38dc9f0de4f7f444b796d14476bc12df7bc","fixed":"dbd0af8083dd201f07c49110b2ee93710abdff28","status":"affected"},{"type":"git","introduced":"91c7b38dc9f0de4f7f444b796d14476bc12df7bc","fixed":"2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b","status":"affected"},{"type":"git","introduced":"91c7b38dc9f0de4f7f444b796d14476bc12df7bc","fixed":"71e99ee20fc3f662555118cf1159443250647533","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.16","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.165","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.128","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.14","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.4","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.16","fixed":"6.1.165"},{"status":"affected","introduced":"6.2","fixed":"6.6.128"},{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.14"},{"status":"affected","introduced":"6.19","fixed":"6.19.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d719eb1c1dd2e05dbcf5c45d580a4361fb42ba5b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e3de296af465b65fb941133459dcbdedab7f497","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2a6586ecfa4ce1413daaafee250d2590e05f1a33","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7017745068a9068904e1e7a1b170a5785647cc81","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f3fe58ce37926a10115ede527d59b91bcc05400a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dbd0af8083dd201f07c49110b2ee93710abdff28","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/71e99ee20fc3f662555118cf1159443250647533","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-253495.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-16T20:18:23.569Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23231","url":"https://www.cve.org/CVERecord?id=CVE-2026-23231","licence":"CVE Terms of Use","modified":"2026-11-23T07:58:38.261Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23231","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23231","licence":"Public domain","modified":"2026-11-23T08:17:14.987Z"}],"updatedAt":"2026-11-25T22:59:15.167Z","epss":{"score":0.01029,"percentile":0.6464,"date":"2026-12-01T12:00:22.000Z"}}