CVE-2026-53270: ipvs: clear the svc scheduler ptr early on edit
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipvs: clear the svc scheduler ptr early on edit
ip_vs_edit_service() while unbinding the old scheduler clears the svc->scheduler ptr after the scheduler module initiates RCU callbacks. This can cause packets to use the old scheduler at the time when svc->sched_data is already freed after RCU grace period.
Fix it by clearing the ptr early in ip_vs_unbind_scheduler(), before the done_service method schedules any RCU callbacks.
Also, if the new scheduler fails to initialize when replacing the old scheduler, try to restore the old scheduler while still returning the error code.
The Linux kernel CVE team has assigned CVE-2026-53270 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.2 with commit 05f00505a89acd21f5d0d20f5797dfbc4cf85243 and fixed in 5.10.259 with commit d10730a1f2caf08088e0db1b19b242f3e6fa5f06 Issue introduced in 4.2 with commit 05f00505a89acd21f5d0d20f5797dfbc4cf85243 and fixed in 5.15.210 with commit e4feec3174036ba772006be74beee0efa09a9eb8 Issue introduced in 4.2 with commit 05f00505a89acd21f5d0d20f5797dfbc4cf85243 and fixed in 6.1.176 with commit 7d4f5004511757e3984901ffb412fcf858d80ed5 Issue introduced in 4.2 with commit 05f00505a89acd21f5d0d20f5797dfbc4cf85243 and fixed in 6.6.143 with commit c6376b9b1b4d2bad638256b1b3588e073344ae69 Issue introduced in 4.2 with commit 05f00505a89acd21f5d0d20f5797dfbc4cf85243 and fixed in 6.12.94 with commit 14e4689c113b4c06af1069364ade24fdd7055f33 Issue introduced in 4.2 with commit 05f00505a89acd21f5d0d20f5797dfbc4cf85243 and fixed in 6.18.36 with commit 25918720ba97f974a4f8d433b5a0132c5b43f6f3 Issue introduced in 4.2 with commit 05f00505a89acd21f5d0d20f5797dfbc4cf85243 and fixed in 7.0.13 with commit 19a9493faa4bf3c7bd0a386f30b60b1bb4a3da03 Issue introduced in 4.2 with commit 05f00505a89acd21f5d0d20f5797dfbc4cf85243 and fixed in 7.1 with commit 193989cc6d80dd8e0460fb3992e69fa03bf0ff9b Issue introduced in 3.18.23 with commit c803fddd2a95a70873c68dbff42d4c59fd2e674e Issue introduced in 4.1.11 with commit 4ec8fb23158797affae7993c15beba080488482f
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53270
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_ctl.c
net/netfilter/ipvs/ip_vs_sched.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d10730a1f2caf08088e0db1b19b242f3e6fa5f06 https://git.kernel.org/stable/c/e4feec3174036ba772006be74beee0efa09a9eb8 https://git.kernel.org/stable/c/7d4f5004511757e3984901ffb412fcf858d80ed5 https://git.kernel.org/stable/c/c6376b9b1b4d2bad638256b1b3588e073344ae69 https://git.kernel.org/stable/c/14e4689c113b4c06af1069364ade24fdd7055f33 https://git.kernel.org/stable/c/25918720ba97f974a4f8d433b5a0132c5b43f6f3 https://git.kernel.org/stable/c/19a9493faa4bf3c7bd0a386f30b60b1bb4a3da03 https://git.kernel.org/stable/c/193989cc6d80dd8e0460fb3992e69fa03bf0ff9b