Skip to contentSkip to conversation

CVE-2026-72392: ipv6: fib6: fix NULL deref in fib6_walk_continue() on multi-batch dump

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

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

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

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

ipv6: fib6: fix NULL deref in fib6_walk_continue() on multi-batch dump

inet6_dump_fib() saves its progress in cb->args[1] as a positional index within the current hash chain. Between batches, a concurrent fib6_new_table() can insert a new table at the chain head, shifting all existing entries. The saved index then lands on a different table, causing fib6_dump_table() to set w->root to the wrong table while w->node still points into the previous one. fib6_walk_continue() dereferences w->node->parent (NULL) and panics:

  BUG: kernel NULL pointer dereference, address: 0000000000000008
  RIP: 0010:fib6_walk_continue+0x6e/0x170
  Call Trace:
   <TASK>
   fib6_dump_table.isra.0+0xc5/0x240
   inet6_dump_fib+0xf6/0x420
   rtnl_dumpit+0x30/0xa0
   netlink_dump+0x15b/0x460
   netlink_recvmsg+0x1d6/0x2a0
   ____sys_recvmsg+0x17a/0x190

Fix by storing tb->tb6_id in cb->args[1] instead of a positional index. On resume, skip entries until the id matches; a concurrent head-insert can never match the saved id, so the walker always resumes on the correct table.

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

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

	Issue introduced in 2.6.19 with commit 1b43af5480c351dbcb2eef478bafe179cbeb6e83 and fixed in 5.15.212 with commit 89f9c5fee3c64c5cabc34e65599308fd3c879cf9
	Issue introduced in 2.6.19 with commit 1b43af5480c351dbcb2eef478bafe179cbeb6e83 and fixed in 6.6.151 with commit 27210d433a8c5fe6bf7278a04bbaeb49a81d0290
	Issue introduced in 2.6.19 with commit 1b43af5480c351dbcb2eef478bafe179cbeb6e83 and fixed in 6.12.97 with commit 059efb48dd746518898faaa9b965511009b59639
	Issue introduced in 2.6.19 with commit 1b43af5480c351dbcb2eef478bafe179cbeb6e83 and fixed in 6.18.40 with commit d8a01d27873e04bebd357dc87859aa756e0b28b2
	Issue introduced in 2.6.19 with commit 1b43af5480c351dbcb2eef478bafe179cbeb6e83 and fixed in 7.1.5 with commit 110ccbd28c9444866fcc84ba96a2ad64fa6e95ae
	Issue introduced in 2.6.19 with commit 1b43af5480c351dbcb2eef478bafe179cbeb6e83 and fixed in 7.2-rc2 with commit 9facb861dc6b9b9ea9793ef5032a9a826f7a4229

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-72392

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/ip6_fib.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/89f9c5fee3c64c5cabc34e65599308fd3c879cf9
	https://git.kernel.org/stable/c/27210d433a8c5fe6bf7278a04bbaeb49a81d0290
	https://git.kernel.org/stable/c/059efb48dd746518898faaa9b965511009b59639
	https://git.kernel.org/stable/c/d8a01d27873e04bebd357dc87859aa756e0b28b2
	https://git.kernel.org/stable/c/110ccbd28c9444866fcc84ba96a2ad64fa6e95ae
	https://git.kernel.org/stable/c/9facb861dc6b9b9ea9793ef5032a9a826f7a4229