{"id":"CVE-2026-31406","summary":"xfrm: Fix work re-schedule after cancel in xfrm_nat_keepalive_net_fini()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: Fix work re-schedule after cancel in xfrm_nat_keepalive_net_fini()\n\nAfter cancel_delayed_work_sync() is called from\nxfrm_nat_keepalive_net_fini(), xfrm_state_fini() flushes remaining\nstates via __xfrm_state_delete(), which calls\nxfrm_nat_keepalive_state_updated() to re-schedule nat_keepalive_work.\n\nThe following is a simple race scenario:\n\n           cpu0                             cpu1\n\ncleanup_net() [Round 1]\n  ops_undo_list()\n    xfrm_net_exit()\n      xfrm_nat_keepalive_net_fini()\n        cancel_delayed_work_sync(nat_keepalive_work);\n      xfrm_state_fini()\n        xfrm_state_flush()\n          xfrm_state_delete(x)\n            __xfrm_state_delete(x)\n              xfrm_nat_keepalive_state_updated(x)\n                schedule_delayed_work(nat_keepalive_work);\n  rcu_barrier();\n  net_complete_free();\n  net_passive_dec(net);\n    llist_add(&net-\u003edefer_free_list, &defer_free_list);\n\ncleanup_net() [Round 2]\n  rcu_barrier();\n  net_complete_free()\n    kmem_cache_free(net_cachep, net);\n                                     nat_keepalive_work()\n                                       // on freed net\n\nTo prevent this, cancel_delayed_work_sync() is replaced with\ndisable_delayed_work_sync().","modified":"2026-07-15T01:48:52.226400602Z","published":"2026-04-06T07:38:18.840Z","related":["SUSE-SU-2026:21519-1","SUSE-SU-2026:21520-1","SUSE-SU-2026:21521-1","SUSE-SU-2026:21522-1","SUSE-SU-2026:21523-1","SUSE-SU-2026:21524-1","SUSE-SU-2026:21525-1","SUSE-SU-2026:21526-1","SUSE-SU-2026:21527-1","SUSE-SU-2026:21528-1","SUSE-SU-2026:21529-1","SUSE-SU-2026:21530-1","SUSE-SU-2026:21531-1","SUSE-SU-2026:21532-1","SUSE-SU-2026:21533-1","SUSE-SU-2026:21554-1","SUSE-SU-2026:21555-1","SUSE-SU-2026:21556-1","SUSE-SU-2026:21557-1","SUSE-SU-2026:21558-1","SUSE-SU-2026:21562-1","SUSE-SU-2026:21563-1","SUSE-SU-2026:21591-1","SUSE-SU-2026:21598-1","SUSE-SU-2026:21834-1","SUSE-SU-2026:21841-1","SUSE-SU-2026:21845-1","SUSE-SU-2026:21860-1","SUSE-SU-2026:21953-1","SUSE-SU-2026:21954-1","SUSE-SU-2026:21961-1","SUSE-SU-2026:21964-1","SUSE-SU-2026:21968-1","SUSE-SU-2026:21973-1","SUSE-SU-2026:21975-1","SUSE-SU-2026:21978-1","SUSE-SU-2026:22029-1","SUSE-SU-2026:22034-1","SUSE-SU-2026:22036-1","SUSE-SU-2026:22037-1","openSUSE-SU-2026:20826-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31406.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/21f2fc49ca6faa393c31da33b8a4e6c41fc84c13"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2255ed6adbc3100d2c4a83abd9d0396d04b87792"},{"type":"WEB","url":"https://git.kernel.org/stable/c/32d0f44c2f14d60fe8e920e69a28c11051543ec1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/daf8e3b253aa760ff9e96c7768a464bc1d6b3c90"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31406.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31406"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae"},{"fixed":"32d0f44c2f14d60fe8e920e69a28c11051543ec1"},{"fixed":"2255ed6adbc3100d2c4a83abd9d0396d04b87792"},{"fixed":"21f2fc49ca6faa393c31da33b8a4e6c41fc84c13"},{"fixed":"daf8e3b253aa760ff9e96c7768a464bc1d6b3c90"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31406.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.11.0"},{"fixed":"6.12.80"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.21"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.11"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31406.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}