{"id":"CVE-2026-143134","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:17:46.907","lastModified":"2026-12-03T10:17:46.907","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: xt_recent: do not call remove_proc_entry() under recent_lock\n\nrecent_proc_net_exit() removes the /proc/net/xt_recent/<name> entries of\na dying network namespace while holding spin_lock_bh(&recent_lock).\nremove_proc_entry() may sleep: proc_entry_rundown() waits until every\ntask that is still inside the entry's file operations has left. A reader\nof such an entry is counted in by proc_reg_read() before\nrecent_seq_start() takes recent_lock. So if a read is in flight when the\nnamespace is torn down, cleanup_net() sleeps in atomic context holding\nthe spinlock that the reader is spinning on, and neither side can ever\nmake progress.\n\nAn unprivileged user can trigger this from a user namespace by adding a\nrule with the \"recent\" match and reading its proc file while the\nnamespace is being destroyed. As recent_lock is global, every later\nattempt to take it spins forever too: the spinning can spread to all\nCPUs, and network namespace teardown stops system-wide.\n\n  BUG: sleeping function called from invalid context at\n    kernel/sched/completion.c:116\n   #3: (recent_lock){+...}-{3:3}, at: recent_net_exit+0x2b/0x140\n  Workqueue: netns cleanup_net\n  Call Trace:\n   proc_entry_rundown+0x185/0x1b0\n   remove_proc_entry+0x21a/0x520\n   recent_net_exit+0x7f/0x140\n   cleanup_net+0x414/0x8f0\n  ...\n  rcu: INFO: rcu_preempt self-detected stall on CPU\n  Call Trace:\n   queued_spin_lock_slowpath+0x313/0xc20\n   recent_seq_start+0x87/0x1b0\n   seq_read_iter+0x265/0x11e0\n   proc_reg_read+0x1ab/0x270\n\nFix by taking recent_mutex instead of recent_lock. According to\ncommit a0e889bb1bdc (\"[NETFILTER]: recent match: fix \"sleeping function\ncalled from invalid context\"\"), recent_mutex is the lock to use here: it\nprotects recent_net->tables and was introduced so that proc entries are\ncreated and removed without recent_lock held, because those calls may\nsleep. hashlimit_proc_net_exit() does the same for xt_hashlimit."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["net/netfilter/xt_recent.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"665e205c16c1f902ac6763b8ce8a0a3a1dcefe59","lessThan":"dc506b04fae57d3ed5e5f33948f244a75f9162ec","versionType":"git","status":"affected"},{"version":"665e205c16c1f902ac6763b8ce8a0a3a1dcefe59","lessThan":"99af6f583b94de3c0a6a0ba2d4e09d67d91f32a7","versionType":"git","status":"affected"},{"version":"665e205c16c1f902ac6763b8ce8a0a3a1dcefe59","lessThan":"c76b5331ff0e4cf7e7fd174d705ae6b70d03daa8","versionType":"git","status":"affected"},{"version":"665e205c16c1f902ac6763b8ce8a0a3a1dcefe59","lessThan":"520977f1606b8de1d62ed0cf13e5195d13864b3e","versionType":"git","status":"affected"},{"version":"665e205c16c1f902ac6763b8ce8a0a3a1dcefe59","lessThan":"de330c35537af8c94398c0b2a0e835fc7b628eb8","versionType":"git","status":"affected"},{"version":"665e205c16c1f902ac6763b8ce8a0a3a1dcefe59","lessThan":"17c2e41736b62cfe444c64d67860b1fbc1e886ac","versionType":"git","status":"affected"},{"version":"98dbbfa183f5abbbe582c1ba53b8bfac9e7ed37e","versionType":"git","status":"affected"},{"version":"3.7.6","lessThan":"3.8","versionType":"semver","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["net/netfilter/xt_recent.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"3.8","status":"affected"},{"version":"0","lessThan":"3.8","versionType":"semver","status":"unaffected"},{"version":"5.10.276","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/17c2e41736b62cfe444c64d67860b1fbc1e886ac","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/520977f1606b8de1d62ed0cf13e5195d13864b3e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/99af6f583b94de3c0a6a0ba2d4e09d67d91f32a7","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c76b5331ff0e4cf7e7fd174d705ae6b70d03daa8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/dc506b04fae57d3ed5e5f33948f244a75f9162ec","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/de330c35537af8c94398c0b2a0e835fc7b628eb8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}