{"id":"CVE-2026-143142","summary":"ipvs: fix protocol data lifetime during namespace teardown","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nipvs: fix protocol data lifetime during namespace teardown\n\nIPVS frees its per-net protocol data before control cleanup cancels\ndefense work and unregisters the sysctl table. A defense worker can load\na protocol data pointer, then namespace cleanup can unlink and free that\nobject before the worker dereferences pd-\u003epp or pd-\u003enext. The worker's\nsecuretcp_lock does not serialize with protocol cleanup. A concurrent\ndefense-mode sysctl write can reach the same timeout update path.\n\nKASAN reported:\n\n  BUG: KASAN: slab-use-after-free in ip_vs_protocol_timeout_change\n  Workqueue: events_long defense_work_handler\n  Call Trace:\n   ip_vs_protocol_timeout_change+0x1b4/0x1e0\n   update_defense_level+0x63e/0xd80\n   defense_work_handler+0x1e/0xc0\n  Allocated by task 125:\n   ip_vs_protocol_net_init+0xda/0x2f0\n   __ip_vs_init+0x16b/0x240\n   setup_net+0xfc/0x310\n  Freed by task 12:\n   ip_vs_protocol_net_cleanup+0x1d6/0x2e0\n   __ip_vs_cleanup_batch+0x7d/0x100\n   cleanup_net+0x38c/0x770\n\nRun control cleanup before protocol cleanup so that defense work and\nactive sysctl handlers have finished before their protocol data is freed.\nInitialize protocols before exposing the control interface, and unwind\nin reverse order, to enforce the same lifetime on initialization failure.\nProtocol initialization and exit do not depend on control state.","modified":"2026-12-03T11:01:25.189406118Z","published":"2026-12-03T09:19:48.118Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143142.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0d6446c29960dda45b5ba227921e460268fc1c8c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0e0ea09b4bb74f472fea3ab9c0ccb696729d9f39"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3d8230282abfadd000f919c1f6ab7ab9208b1577"},{"type":"WEB","url":"https://git.kernel.org/stable/c/832aa3e89e806bb2667fe4e656b705f4088b3c9d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/adcdf2952ba52e6c3b68dec270a78096a6cedc15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d79875219c85ef029e70732c280e7731bd7c13ee"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143142.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143142"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9330419d9aa4f97df412ac9be9fc0388c67dd315"},{"fixed":"d79875219c85ef029e70732c280e7731bd7c13ee"},{"fixed":"0d6446c29960dda45b5ba227921e460268fc1c8c"},{"fixed":"0e0ea09b4bb74f472fea3ab9c0ccb696729d9f39"},{"fixed":"adcdf2952ba52e6c3b68dec270a78096a6cedc15"},{"fixed":"3d8230282abfadd000f919c1f6ab7ab9208b1577"},{"fixed":"832aa3e89e806bb2667fe4e656b705f4088b3c9d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143142.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.39"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143142.json"}}],"schema_version":"1.9.2"}