{"id":"CVE-2026-97608","published":"2026-09-25T10:22:19Z","modified":"2026-10-19T09:10:12Z","title":"netfilter: nf_log: unregister loggers before per-net teardown","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00149,"percentile":0.04071,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/51417230716b73f6aa1dc402b3a56d3382a694dc","tags":[]},{"url":"https://git.kernel.org/stable/c/b0514ca1ee6f2b708d6c602ea946acdfc6a90e24","tags":[]},{"url":"https://git.kernel.org/stable/c/90166834b7dc6131aa42b6b14b8b4ed47be97079","tags":[]},{"url":"https://git.kernel.org/stable/c/eaec35fae8f2052c1878a5c7cc7699d8357d79f2","tags":[]},{"url":"https://git.kernel.org/stable/c/64803ba0a05791cf9ca874466480e4c4cadaf7ab","tags":[]},{"url":"https://git.kernel.org/stable/c/dce24f3a146948595bb1b86347f31e20b4975daa","tags":[]},{"url":"https://git.kernel.org/stable/c/2c018cc4842c33f0c732962e2ab58635e8ae5823","tags":[]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":0.81},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5b023fc8d8e0997e0b7ea6506d243afd5478c96e, < 51417230716b73f6aa1dc402b3a56d3382a694dc",">= 5b023fc8d8e0997e0b7ea6506d243afd5478c96e, < b0514ca1ee6f2b708d6c602ea946acdfc6a90e24",">= 5b023fc8d8e0997e0b7ea6506d243afd5478c96e, < 90166834b7dc6131aa42b6b14b8b4ed47be97079",">= 5b023fc8d8e0997e0b7ea6506d243afd5478c96e, < eaec35fae8f2052c1878a5c7cc7699d8357d79f2",">= 5b023fc8d8e0997e0b7ea6506d243afd5478c96e, < 64803ba0a05791cf9ca874466480e4c4cadaf7ab",">= 5b023fc8d8e0997e0b7ea6506d243afd5478c96e, < dce24f3a146948595bb1b86347f31e20b4975daa",">= 5b023fc8d8e0997e0b7ea6506d243afd5478c96e, < 2c018cc4842c33f0c732962e2ab58635e8ae5823"]},{"vendor":"Linux","product":"Linux","versions":["3.10"]}],"euvd":{"id":"EUVD-2026-86739","exploited":false,"provenance":"source"}}