ipvs: clear the svc scheduler ptr early on edit
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 05f00505a89acd21f5d0d20f5797dfbc4cf85243 · < 25918720ba97f974a4f8d433b5a0132c5b43f6f3| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s IPVS service-edit path can leave a pointer to an old scheduler in place after its scheduling data has been freed. Packets may then use the old scheduler during a scheduler replacement. The input does not specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers running Linux kernels with IPVS should check their exposure; affected versions are not specified.