ipvs: do not keep dest_dst if dev is going down
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7a4f0761fce32ff4918a7c23b08db564ad33092d · < 8fde939b0206afc1d5846217a01a16b9bc8c7896| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipvs: do not keep dest_dst if dev is going down
There is race between the netdev notifier ip_vs_dst_event() and the code that caches dst with dev that is going down. As the FIB can be notified for the closed device after our handler finishes, it is possible valid route to be returned and cached resuling in a leaked dev reference until the dest is not removed.
To prevent new dest_dst to be attached to dest just after the handler dropped the old one, add a netif_running() check to make sure the notifier handler is not currently running for device that is closing.
From the CVE record · Linux
A race in the Linux kernel’s IPVS routing cache can retain a reference to a network device that is going down until the destination is removed. The input does not specify whether an attacker can trigger the race or what access or interaction would be required.
Operators running Linux kernels with the affected IPVS code should check their versions; affected versions are not specified.