CVE-2026-143144: ipv6: reject routes without an inet6_dev
In the Linux kernel, the following vulnerability has been resolved:
ipv6: reject routes without an inet6dev
ip6routeoutput() and ip6routelookup() can return an error-free route whose rt6iidev is NULL. Lowering an external nexthop device's MTU below IPV6MINMTU tears down its inet6dev, while fib6ifdown() leaves routes using nexthop objects in the FIB.
An unprivileged user with CAPNETADMIN in a private user and network namespace can construct this state. Consumers which treat a route without an error as usable can then dereference the NULL rt6iidev. This was reproduced as a KASAN NULL pointer dereference in ip6tnlxmit().
An audit of IPv6 route and tunnel users found this unchecked ip6dstidev() dereference.
A similar missing inet6dev check was fixed in commit 1b9b5323725e ("netfilter: ip6trpfilter: reject routes without inet6dev"). However, the route construction path still marks routes without an inet6dev as successful, leaving every consumer responsible for the same check.
Acquire the inet6dev reference before initializing the destination. If a non-reject route has no inet6dev, initialize it as RTNUNREACHABLE instead of a successful route. Explicit reject routes keep their original type and error. This establishes that ordinary error-free IPv6 routes have an inet6dev while retaining the existing defensive checks at callers.
The modified route object builds cleanly with W=1. A full x8664 KASAN bzImage build completes; it reports two pre-existing kernel-doc warnings outside this change.
Tests: - make W=1 net/ipv6/route.o - full x8664 KASAN bzImage build with W=1 - KASAN QEMU with an unprivileged user and network namespace: after lowering the MTU, the stale route returned No route to host, a normal route still resolved, and the collectmd trigger completed without KASAN, oops, or panic - tools/testing/selftests/net/ip6tunnel.sh in the same KASAN QEMU
Affected Software
Event History
Frequently Asked Questions
Who can trigger the vulnerable route state?
An unprivileged user who has CAP_NET_ADMIN within a private user namespace and network namespace can construct the affected state. The condition involves lowering an external nexthop device's MTU below IPV6_MIN_MTU, which tears down its inet6_dev while routes using nexthop objects remain in the FIB.
What is the practical impact of exploiting this issue?
IPv6 route lookup or output can return a route that appears successful but has a NULL rt6i_idev. Consumers that treat that route as usable can dereference the NULL pointer, resulting in a kernel NULL-pointer dereference; the issue was reproduced in ip6_tnl_xmit with KASAN.
How does the fix change handling of affected routes?
The fix obtains the inet6_dev reference before destination initialization. A non-reject route without an inet6_dev is initialized as RTN_UNREACHABLE rather than being returned as a successful route.