Skip to contentSkip to conversation

CVE-2026-46086: net: bridge: use a stable FDB dst snapshot in RCU readers

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

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

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

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

net: bridge: use a stable FDB dst snapshot in RCU readers

Local FDB entries can be rewritten in place by fdb_delete_local(), which updates f->dst to another port or to NULL while keeping the entry alive. Several bridge RCU readers inspect f->dst, including br_fdb_fillbuf() through the brforward_read() sysfs path.

These readers currently load f->dst multiple times and can therefore observe inconsistent values across the check and later dereference. In br_fdb_fillbuf(), this means a concurrent local-FDB update can change f->dst after the NULL check and before the port_no dereference, leading to a NULL-ptr-deref.

Fix this by taking a single READ_ONCE() snapshot of f->dst in each affected RCU reader and using that snapshot for the rest of the access sequence. Also publish the in-place f->dst updates in fdb_delete_local() with WRITE_ONCE() so the readers and writer use matching access patterns.

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

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

	Issue introduced in 3.14 with commit 960b589f86c74ce582922fcb996103271081f4de and fixed in 6.6.140 with commit 0b9e4bbfb7c949151e3acd44ed4aa33614d2e110
	Issue introduced in 3.14 with commit 960b589f86c74ce582922fcb996103271081f4de and fixed in 6.12.86 with commit 81af4137a30c4c2dc694dea8cacb180bd66000ef
	Issue introduced in 3.14 with commit 960b589f86c74ce582922fcb996103271081f4de and fixed in 6.18.27 with commit 5424e678f9b304e148cf5dcc047cffc7a56a3bb5
	Issue introduced in 3.14 with commit 960b589f86c74ce582922fcb996103271081f4de and fixed in 7.0.4 with commit 9a2d9d4e657b23dc21f24cf139e3aeff0b61341f
	Issue introduced in 3.14 with commit 960b589f86c74ce582922fcb996103271081f4de and fixed in 7.1-rc1 with commit df4601653201de21b487c3e7fffd464790cab808

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

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/bridge/br_arp_nd_proxy.c
net/bridge/br_fdb.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/0b9e4bbfb7c949151e3acd44ed4aa33614d2e110
	https://git.kernel.org/stable/c/81af4137a30c4c2dc694dea8cacb180bd66000ef
	https://git.kernel.org/stable/c/5424e678f9b304e148cf5dcc047cffc7a56a3bb5
	https://git.kernel.org/stable/c/9a2d9d4e657b23dc21f24cf139e3aeff0b61341f
	https://git.kernel.org/stable/c/df4601653201de21b487c3e7fffd464790cab808