In the Linux kernel, the following vulnerability has been resolved: ipv6: Fix memleak of nhcpcpurthoutput in fibchecknhv6gw(). fibchecknhv6gw() expects that fib6nhinit() cleans up everything when it fails. Commit 7dd73168e273 ("ipv6: Always allocate pcpu memory in a fib6nh") moved fibnhcommoninit() before allocpercpugfp() within fib6nhinit() but forgot to add cleanup for fib6nh->nhcommon.nhcpcpurthoutput in case it fails to allocate fib6nh->rt6ipcpu, resulting in memleak. Let's call fibnhcommonrelease() and clear nhcpcpurthoutput in the error path. Note that we can remove the fib6nhrelease() call in nhcreateipv6() later in net-next.git.