Linux kernel denial of service in IPv4 nexthop rebalancing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0e884c78ee19e902f300ed147083c28a0c6302f0 · < 5dac5c7ba8f5f3fb4bf29f2a2c3cb552f5b83c8f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv4: avoid divide by zero in fib_rebalance
fib_rebalance() computes the total eligible nexthop weight in one pass and programs upper bounds in a second pass. A concurrent change to ignore_routes_with_linkdown can make the first pass return zero while the second pass sees an eligible nexthop, resulting in division by zero.
If the first pass reports a zero total, set each nexthop upper bound to -1 and skip the division. This matches the IPv6 fix in commit d2c26c2911dd ("ipv6: avoid divide by zero in rt6_multipath_rebalance") and preserves the lock-free rebalance path.
From the CVE record · Linux
A concurrent change to ignore_routes_with_linkdown can cause fib_rebalance() to divide by zero while rebalancing IPv4 nexthops. The input does not specify an attacker action, access requirements, or user interaction needed to trigger this condition.
Engineers running the Linux kernel should check whether their version is affected; affected versions are not specified.