Skip to contentSkip to conversation

CVE-2026-98379: netfilter: ip6t_rpfilter: reject routes without inet6_dev

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 9

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

netfilter: ip6t_rpfilter: reject routes without inet6_dev

ip6_route_lookup() can return an error-free route whose rt6i_idev is NULL. Lowering an external nexthop device's MTU below IPV6_MIN_MTU tears down its inet6_dev while fib6_ifdown() leaves routes using nexthop objects in the FIB. An unprivileged user can construct this state with rtnetlink in a private user and network namespace, then trigger a NULL dereference through an IPv6 rpfilter lookup:

  Oops: general protection fault, probably for non-canonical address
  0xdffffc0000000000
  KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
  RIP: rpfilter_mt (net/ipv6/netfilter/ip6t_rpfilter.c:75)
  Call Trace:
  ip6t_do_table (net/ipv6/netfilter/ip6_tables.c:316)
  nf_hook_slow (net/netfilter/core.c:619)
  ipv6_rcv (net/ipv6/ip6_input.c:351)
  __netif_receive_skb_one_core (net/core/dev.c:6216)
  process_backlog (net/core/dev.c:6680)
  __napi_poll (net/core/dev.c:7739)
  net_rx_action (net/core/dev.c:7959)
  handle_softirqs (kernel/softirq.c:622)
  do_softirq.part.0 (kernel/softirq.c:523)
  __local_bh_enable_ip (kernel/softirq.c:450)
  __dev_queue_xmit (net/core/dev.c:4913)
  packet_sendmsg (net/packet/af_packet.c:3139)
  __sys_sendto (net/socket.c:2252)
  __x64_sys_sendto (net/socket.c:2259)
  do_syscall_64 (arch/x86/entry/syscall_64.c:94)
  entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)
  Kernel panic - not syncing: Fatal exception in interrupt

Reject routes without an inet6_dev immediately after lookup. Such routes are not eligible for reverse-path filtering, and the check protects all later rt6i_idev dereferences.

The Linux kernel CVE team has assigned CVE-2026-98379 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.3 with commit e26f9a480fb6c1b614660e824d69a74e2ce990f3 and fixed in 5.10.271 with commit f4de78756b0fddbd125b2b1b77c74f2eccc8e977
	Issue introduced in 3.3 with commit e26f9a480fb6c1b614660e824d69a74e2ce990f3 and fixed in 5.15.222 with commit 1681ab6dd1271f2f36047490793b78b1848bbcc9
	Issue introduced in 3.3 with commit e26f9a480fb6c1b614660e824d69a74e2ce990f3 and fixed in 6.1.189 with commit 65487e9e99431ffcf05024a817f51ee4e3bd9b47
	Issue introduced in 3.3 with commit e26f9a480fb6c1b614660e824d69a74e2ce990f3 and fixed in 6.6.158 with commit f49da48bd679cfee646d6a40dd02b1933de577d1
	Issue introduced in 3.3 with commit e26f9a480fb6c1b614660e824d69a74e2ce990f3 and fixed in 6.12.112 with commit 290c96e5d9471d1ded9ab1e8ffbb04f6ee7b0f40
	Issue introduced in 3.3 with commit e26f9a480fb6c1b614660e824d69a74e2ce990f3 and fixed in 6.18.55 with commit eafe081ea77d25b5c8e601680671b4ecb4520e7d
	Issue introduced in 3.3 with commit e26f9a480fb6c1b614660e824d69a74e2ce990f3 and fixed in 7.2.9 with commit 3a7384bc2e66217c9a01a392281334f4423740a0
	Issue introduced in 3.3 with commit e26f9a480fb6c1b614660e824d69a74e2ce990f3 and fixed in 7.3-rc5 with commit 1b9b5323725e458906c7620a3bc10398b51ad954

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98379

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/ipv6/netfilter/ip6t_rpfilter.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/f4de78756b0fddbd125b2b1b77c74f2eccc8e977
	https://git.kernel.org/stable/c/1681ab6dd1271f2f36047490793b78b1848bbcc9
	https://git.kernel.org/stable/c/65487e9e99431ffcf05024a817f51ee4e3bd9b47
	https://git.kernel.org/stable/c/f49da48bd679cfee646d6a40dd02b1933de577d1
	https://git.kernel.org/stable/c/290c96e5d9471d1ded9ab1e8ffbb04f6ee7b0f40
	https://git.kernel.org/stable/c/eafe081ea77d25b5c8e601680671b4ecb4520e7d
	https://git.kernel.org/stable/c/3a7384bc2e66217c9a01a392281334f4423740a0
	https://git.kernel.org/stable/c/1b9b5323725e458906c7620a3bc10398b51ad954