Vulnerability record
ipv6: fix fib6 walker UAF on NLM_F_REPLACE
In the Linux kernel, the following vulnerability has been resolved:
ipv6: fix fib6 walker UAF on NLM_F_REPLACE
fib6_walker uses w->leaf to remember the next fib6_info to dump, so an RTM_GETROUTE dump can continue there on the next recvmsg(). This assumes that whoever removes a route from the tree also updates the walkers pointing at it. fib6_del_route() does: it moves w->leaf to the next route. The NLM_F_REPLACE branch of fib6_add_rt2node() does not: it removes the old route, fib6_add() frees it, and w->leaf keeps pointing at the freed object.
The fn_sernum version check in…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources