Linux kernel warning in IPv4 route notification size race
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 680aea08e78c003292415518ad270bc20f9c80b1 · < 221ef5e1e44a044790f0f54e6aa237883f475a4d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv4: do not warn on route notification size race
Commit 680aea08e78c ("net: ipv4: Emit notification when fib hardware flags are changed") added asynchronous route notifications for hardware flag changes.
fib_alias_hw_flags_set() sizes the skb with fib_nlmsg_size() and later fills it with fib_dump_info() while holding only RCU. With nexthop compatibility mode enabled, a concurrent replacement can grow the group between these independent snapshots. fib_dump_info() can then legitimately return -EMSGSIZE, so the warning does not prove a sizing bug.
Remove the warning. The existing error path still frees the skb and reports the error to listeners.
From the CVE record · Linux
A race in Linux kernel IPv4 route notifications can produce a warning when nexthop compatibility mode is enabled and a route group is concurrently replaced. The warning occurs if the group grows between message sizing and filling; the input does not establish whether an attacker can trigger this or what access they would need.
Engineers running the Linux kernel should check affected versions against the vendor advisory; no versions are listed in the input.