{"id":"CVE-2026-97608","aliases":["CVE-2026-97608"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: nf_log: unregister loggers before per-net teardown","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_log: unregister loggers before per-net teardown\n\nnf_log_syslog and nfnetlink_log unregister their per-network namespace\noperations before unregistering their global logger backends. This\nleaves a window where a sysctl or netlink writer can rebind the still-\nregistered logger after the per-net pre-exit callback cleared the old\nselection.\n\nThe race looks like this:\n\n  CPU 0                                 CPU 1\n  ----                                  ----\n  unregister_pernet_subsys()\n    nf_log_unset(net, logger)\n      net->nf.nf_loggers[pf] = NULL\n\n                                        lock nf_log_mutex\n                                        find logger in loggers[][]\n                                        net->nf.nf_loggers[pf] = logger\n                                        unlock nf_log_mutex\n\n  nf_log_unregister(logger)\n    lock nf_log_mutex\n    loggers[pf][type] = NULL\n    unlock nf_log_mutex\n    synchronize_rcu()\n  module exit returns\n  module core frees backend memory\n\nLater, a sysctl read or packet logging operation can dereference the\nstale per-net logger pointer.\n\nFix this by unregistering the global logger backends before tearing down\nper-net state. Once the global registrations are gone, later writers can\nno longer rebind the logger. unregister_pernet_subsys() already waits\nfor an RCU grace period after the pre-exit callback clears the per-net\nselection, while nf_log_unregister() continues to cover readers of the\nglobal logger table.\n\nApply this ordering fix to both nf_log backends that combine per-net\nteardown with global logger registration.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_log: unregister loggers before per-net teardown\n\nnf_log_syslog and nfnetlink_log unregister their per-network namespace\noperations before unregistering their global logger backends. This\nleaves a window where a sysctl or netlink writer can rebind the still-\nregistered logger after the per-net pre-exit callback cleared the old\nselection.\n\nThe race looks like this:\n\n  CPU 0                                 CPU 1\n  ----                                  ----\n  unregister_pernet_subsys()\n    nf_log_unset(net, logger)\n      net->nf.nf_loggers[pf] = NULL\n\n                                        lock nf_log_mutex\n                                        find logger in loggers[][]\n                                        net->nf.nf_loggers[pf] = logger\n                                        unlock nf_log_mutex\n\n  nf_log_unregister(logger)\n    lock nf_log_mutex\n    loggers[pf][type] = NULL\n    unlock nf_log_mutex\n    synchronize_rcu()\n  module exit returns\n  module core frees backend memory\n\nLater, a sysctl read or packet logging operation can dereference the\nstale per-net logger pointer.\n\nFix this by unregistering the global logger backends before tearing down\nper-net state. Once the global registrations are gone, later writers can\nno longer rebind the logger. unregister_pernet_subsys() already waits\nfor an RCU grace period after the pre-exit callback clears the per-net\nselection, while nf_log_unregister() continues to cover readers of the\nglobal logger table.\n\nApply this ordering fix to both nf_log backends that combine per-net\nteardown with global logger registration.","source":"cvelist"}],"published":"2026-09-25T10:22:19.030Z","modified":"2026-10-19T10:17:30.720Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5b023fc8d8e0997e0b7ea6506d243afd5478c96e","fixed":"51417230716b73f6aa1dc402b3a56d3382a694dc","status":"affected"},{"type":"git","introduced":"5b023fc8d8e0997e0b7ea6506d243afd5478c96e","fixed":"b0514ca1ee6f2b708d6c602ea946acdfc6a90e24","status":"affected"},{"type":"git","introduced":"5b023fc8d8e0997e0b7ea6506d243afd5478c96e","fixed":"90166834b7dc6131aa42b6b14b8b4ed47be97079","status":"affected"},{"type":"git","introduced":"5b023fc8d8e0997e0b7ea6506d243afd5478c96e","fixed":"eaec35fae8f2052c1878a5c7cc7699d8357d79f2","status":"affected"},{"type":"git","introduced":"5b023fc8d8e0997e0b7ea6506d243afd5478c96e","fixed":"64803ba0a05791cf9ca874466480e4c4cadaf7ab","status":"affected"},{"type":"git","introduced":"5b023fc8d8e0997e0b7ea6506d243afd5478c96e","fixed":"dce24f3a146948595bb1b86347f31e20b4975daa","status":"affected"},{"type":"git","introduced":"5b023fc8d8e0997e0b7ea6506d243afd5478c96e","fixed":"2c018cc4842c33f0c732962e2ab58635e8ae5823","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.10","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/51417230716b73f6aa1dc402b3a56d3382a694dc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0514ca1ee6f2b708d6c602ea946acdfc6a90e24","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/90166834b7dc6131aa42b6b14b8b4ed47be97079","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eaec35fae8f2052c1878a5c7cc7699d8357d79f2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64803ba0a05791cf9ca874466480e4c4cadaf7ab","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dce24f3a146948595bb1b86347f31e20b4975daa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c018cc4842c33f0c732962e2ab58635e8ae5823","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97608","url":"https://www.cve.org/CVERecord?id=CVE-2026-97608","licence":"CVE Terms of Use","modified":"2026-10-19T09:10:12.020Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97608","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97608","licence":"Public domain","modified":"2026-10-19T10:17:30.720Z"}],"updatedAt":"2026-11-25T22:59:40.975Z","epss":{"score":0.00149,"percentile":0.04327,"date":"2026-12-01T12:00:22.000Z"}}