{"id":"CVE-2026-74660","aliases":["CVE-2026-74660"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: ebt_nflog: pin the NFLOG backend","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: ebt_nflog: pin the NFLOG backend\n\nnf_log_unregister() runs after the per-net teardown so its final RCU\ngrace period also drains readers that obtained the logger from a per-net\nbinding.  However, ebt_nflog passes an explicit ULOG log type to\nnf_log_packet() without holding a reference on the selected logger module,\nunlike the xt_NFLOG and nft_log frontends.\n\nAn ebtables nflog rule can therefore remain callable while nfnetlink_log\nis unloaded.  The resulting interleaving is:\n\n  CPU 0                               CPU 1\n  nfnetlink_log_fini()\n    unregister_pernet_subsys()\n      kfree(nfnl_log_pernet(net))\n                                      ebt_nflog_tg()\n                                        nf_log_packet()\n                                          nfulnl_log_packet()\n                                            instance_lookup_get_rcu()\n\nThe global ULOG logger is still registered at this point, so CPU 1\ndereferences the per-net state after CPU 0 has freed it.  KASAN reported:\n\n  BUG: KASAN: slab-use-after-free in instance_lookup_get_rcu\n  Read of size 8 at addr ff110001052e6210 by task poc/92\n  Call Trace:\n   instance_lookup_get_rcu+0x1ce/0x1f0 [nfnetlink_log]\n   nfulnl_log_packet+0x248/0x2fb0 [nfnetlink_log]\n   nf_log_packet+0x204/0x300\n   ebt_nflog_tg+0x351/0x550\n   ebt_do_table+0xedf/0x22b0\n  Allocated by task 90:\n   __kmalloc_noprof+0x186/0x470\n   ops_init+0x6d/0x420\n   register_pernet_operations+0x2f6/0x670\n   register_pernet_subsys+0x23/0x40\n  Freed by task 93:\n   kfree+0x131/0x3c0\n   ops_undo_list+0x3e3/0x700\n   unregister_pernet_operations+0x232/0x490\n   unregister_pernet_subsys+0x1c/0x30\n   nfnetlink_log_fini+0x34/0x450 [nfnetlink_log]\n\nAcquire the ULOG logger module reference when an ebt_nflog rule is\nvalidated and release it when the rule is destroyed.  Request the NFLOG\nbackend for legacy callers when needed, matching xt_NFLOG.  This prevents\nmodule teardown until all ebt_nflog rules have stopped using the logger.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: ebt_nflog: pin the NFLOG backend\n\nnf_log_unregister() runs after the per-net teardown so its final RCU\ngrace period also drains readers that obtained the logger from a per-net\nbinding.  However, ebt_nflog passes an explicit ULOG log type to\nnf_log_packet() without holding a reference on the selected logger module,\nunlike the xt_NFLOG and nft_log frontends.\n\nAn ebtables nflog rule can therefore remain callable while nfnetlink_log\nis unloaded.  The resulting interleaving is:\n\n  CPU 0                               CPU 1\n  nfnetlink_log_fini()\n    unregister_pernet_subsys()\n      kfree(nfnl_log_pernet(net))\n                                      ebt_nflog_tg()\n                                        nf_log_packet()\n                                          nfulnl_log_packet()\n                                            instance_lookup_get_rcu()\n\nThe global ULOG logger is still registered at this point, so CPU 1\ndereferences the per-net state after CPU 0 has freed it.  KASAN reported:\n\n  BUG: KASAN: slab-use-after-free in instance_lookup_get_rcu\n  Read of size 8 at addr ff110001052e6210 by task poc/92\n  Call Trace:\n   instance_lookup_get_rcu+0x1ce/0x1f0 [nfnetlink_log]\n   nfulnl_log_packet+0x248/0x2fb0 [nfnetlink_log]\n   nf_log_packet+0x204/0x300\n   ebt_nflog_tg+0x351/0x550\n   ebt_do_table+0xedf/0x22b0\n  Allocated by task 90:\n   __kmalloc_noprof+0x186/0x470\n   ops_init+0x6d/0x420\n   register_pernet_operations+0x2f6/0x670\n   register_pernet_subsys+0x23/0x40\n  Freed by task 93:\n   kfree+0x131/0x3c0\n   ops_undo_list+0x3e3/0x700\n   unregister_pernet_operations+0x232/0x490\n   unregister_pernet_subsys+0x1c/0x30\n   nfnetlink_log_fini+0x34/0x450 [nfnetlink_log]\n\nAcquire the ULOG logger module reference when an ebt_nflog rule is\nvalidated and release it when the rule is destroyed.  Request the NFLOG\nbackend for legacy callers when needed, matching xt_NFLOG.  This prevents\nmodule teardown until all ebt_nflog rules have stopped using the logger.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnetfilter: ebt_nflog: fijar el backend de NFLOG\n\nnf_log_unregister() se ejecuta después del desmantelamiento por red, por lo que su período de gracia RCU final también drena a los lectores que obtuvieron el registrador de una vinculación por red. Sin embargo, ebt_nflog pasa un tipo de registro ULOG explícito a nf_log_packet() sin mantener una referencia en el módulo de registrador seleccionado, a diferencia de los frontends xt_NFLOG y nft_log.\n\nUna regla nflog de ebtables puede, por lo tanto, permanecer invocable mientras nfnetlink_log está descargado. El entrelazado resultante es:\n\n  CPU 0                               CPU 1\n  nfnetlink_log_fini()\n    unregister_pernet_subsys()\n      kfree(nfnl_log_pernet(net))\n                                      ebt_nflog_tg()\n                                        nf_log_packet()\n                                          nfulnl_log_packet()\n                                            instance_lookup_get_rcu()\n\nEl registrador ULOG global todavía está registrado en este punto, por lo que la CPU 1 desreferencia el estado por red después de que la CPU 0 lo haya liberado. KASAN informó:\n\n  ERROR: KASAN: uso después de liberación de slab en instance_lookup_get_rcu\n  Lectura de tamaño 8 en la dirección ff110001052e6210 por la tarea PoC/92\n  Rastro de Llamada:\n   instance_lookup_get_rcu+0x1ce/0x1f0 [nfnetlink_log]\n   nfulnl_log_packet+0x248/0x2fb0 [nfnetlink_log]\n   nf_log_packet+0x204/0x300\n   ebt_nflog_tg+0x351/0x550\n   ebt_do_table+0xedf/0x22b0\n  Asignado por la tarea 90:\n   __kmalloc_noprof+0x186/0x470\n   ops_init+0x6d/0x420\n   register_pernet_operations+0x2f6/0x670\n   register_pernet_subsys+0x23/0x40\n  Liberado por la tarea 93:\n   kfree+0x131/0x3c0\n   ops_undo_list+0x3e3/0x700\n   unregister_pernet_operations+0x232/0x490\n   unregister_pernet_subsys+0x1c/0x30\n   nfnetlink_log_fini+0x34/0x450 [nfnetlink_log]\n\nAdquirir la referencia del módulo de registrador ULOG cuando una regla ebt_nflog es validada y liberarla cuando la regla es destruida. Solicitar el backend de NFLOG para llamadores heredados cuando sea necesario, coincidiendo con xt_NFLOG. Esto evita el desmantelamiento del módulo hasta que todas las reglas ebt_nflog hayan dejado de usar el registrador.","source":"nvd"}],"published":"2026-08-22T15:32:33.677Z","modified":"2026-10-16T20:17:50.040Z","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"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c83fa19603bdaeef17b815713dbbe3230c8a34ee","fixed":"3bcce49d617c593c7606083bfdb464a1761fa68d","status":"affected"},{"type":"git","introduced":"c83fa19603bdaeef17b815713dbbe3230c8a34ee","fixed":"394d7939c6b2b9e6bea0844c89efb5913168d898","status":"affected"},{"type":"git","introduced":"c83fa19603bdaeef17b815713dbbe3230c8a34ee","fixed":"2cac4294f184c9bc19ff82552c62b80498694c39","status":"affected"},{"type":"git","introduced":"c83fa19603bdaeef17b815713dbbe3230c8a34ee","fixed":"9d8a94b48b393885e7f876c8ef68ed4da5012078","status":"affected"},{"type":"git","introduced":"c83fa19603bdaeef17b815713dbbe3230c8a34ee","fixed":"6809379a860b9fccbb5435bf08343f6d081ac68d","status":"affected"},{"type":"git","introduced":"c83fa19603bdaeef17b815713dbbe3230c8a34ee","fixed":"47a119ec8a7e2d5c8c4e86fb1a56c4e696e500fb","status":"affected"},{"type":"git","introduced":"c83fa19603bdaeef17b815713dbbe3230c8a34ee","fixed":"e2ab7e878bdbe80104c879c31fd2d82a476703b8","status":"affected"},{"type":"git","introduced":"c83fa19603bdaeef17b815713dbbe3230c8a34ee","fixed":"30825970339c107bacaf7f61af90fcdb1f597ca1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.152","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.104","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.45","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3bcce49d617c593c7606083bfdb464a1761fa68d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/394d7939c6b2b9e6bea0844c89efb5913168d898","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2cac4294f184c9bc19ff82552c62b80498694c39","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9d8a94b48b393885e7f876c8ef68ed4da5012078","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6809379a860b9fccbb5435bf08343f6d081ac68d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47a119ec8a7e2d5c8c4e86fb1a56c4e696e500fb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e2ab7e878bdbe80104c879c31fd2d82a476703b8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/30825970339c107bacaf7f61af90fcdb1f597ca1","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T19:14:02.258Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74660","url":"https://www.cve.org/CVERecord?id=CVE-2026-74660","licence":"CVE Terms of Use","modified":"2026-10-16T19:16:07.659Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74660","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74660","licence":"Public domain","modified":"2026-10-16T20:17:50.040Z"}],"updatedAt":"2026-11-25T22:59:34.921Z","epss":{"score":0.00126,"percentile":0.02429,"date":"2026-12-01T12:00:22.000Z"}}