{"id":"CVE-2026-143144","summary":"ipv6: reject routes without an inet6_dev","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: reject routes without an inet6_dev\n\nip6_route_output() and ip6_route_lookup() can return an error-free route\nwhose rt6i_idev is NULL.  Lowering an external nexthop device's MTU below\nIPV6_MIN_MTU tears down its inet6_dev, while fib6_ifdown() leaves routes\nusing nexthop objects in the FIB.\n\nAn unprivileged user with CAP_NET_ADMIN in a private user and network\nnamespace can construct this state.  Consumers which treat a route without\nan error as usable can then dereference the NULL rt6i_idev.  This was\nreproduced as a KASAN NULL pointer dereference in ip6_tnl_xmit().\n\nAn audit of IPv6 route and tunnel users found this unchecked\nip6_dst_idev() dereference.\n\nA similar missing inet6_dev check was fixed in commit 1b9b5323725e\n(\"netfilter: ip6t_rpfilter: reject routes without inet6_dev\").  However,\nthe route construction path still marks routes without an inet6_dev as\nsuccessful, leaving every consumer responsible for the same check.\n\nAcquire the inet6_dev reference before initializing the destination.  If a\nnon-reject route has no inet6_dev, initialize it as RTN_UNREACHABLE instead\nof a successful route.  Explicit reject routes keep their original type and\nerror.  This establishes that ordinary error-free IPv6 routes have an\ninet6_dev while retaining the existing defensive checks at callers.\n\nThe modified route object builds cleanly with W=1.  A full x86_64 KASAN\nbzImage build completes; it reports two pre-existing kernel-doc warnings\noutside this change.\n\nTests:\n  - `make W=1 net/ipv6/route.o`\n  - full x86_64 KASAN `bzImage` build with `W=1`\n  - KASAN QEMU with an unprivileged user and network namespace: after\n    lowering the MTU, the stale route returned `No route to host`, a normal\n    route still resolved, and the collect_md trigger completed without\n    KASAN, oops, or panic\n  - `tools/testing/selftests/net/ip6_tunnel.sh` in the same KASAN QEMU","modified":"2026-12-03T11:01:26.307166068Z","published":"2026-12-03T09:19:49.386Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143144.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/08a1eb7a634f665718ebe74e0960e242f597135e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0f296ae8f4d69638b694ff69de1c868ce87942ac"},{"type":"WEB","url":"https://git.kernel.org/stable/c/255bc679c64659764f9e67d04c82379d0fe8722f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/69eda49301b506338ac33c49d5daa595e8778a4f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af5fe27f849abcb8c7ea5c290bb92ecda26bcad9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d0a692fce5408596ded6a4f40ce13844df72c62f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143144.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143144"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5b98324ebe29f4494b0fc45bde2d47ee716518fd"},{"fixed":"af5fe27f849abcb8c7ea5c290bb92ecda26bcad9"},{"fixed":"69eda49301b506338ac33c49d5daa595e8778a4f"},{"fixed":"255bc679c64659764f9e67d04c82379d0fe8722f"},{"fixed":"d0a692fce5408596ded6a4f40ce13844df72c62f"},{"fixed":"0f296ae8f4d69638b694ff69de1c868ce87942ac"},{"fixed":"08a1eb7a634f665718ebe74e0960e242f597135e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143144.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.0"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143144.json"}}],"schema_version":"1.9.2"}