Skip to contentSkip to conversation

CVE-2026-98699: wifi: mac80211: fix mesh fast xmit path deletion UAF

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

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

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

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

wifi: mac80211: fix mesh fast xmit path deletion UAF

mesh_fast_tx_cache() stores raw mesh_path pointers. Path deletion flushes the cache and then frees the path with kfree_rcu(), but a lookup that already holds the path can insert a new cache entry after the flush. The cache then points at freed memory.

Set MESH_PATH_DELETED before flushing, and skip inserting a cache entry if the path or MPP path is already deleted. Check this under the cache walk lock so it is ordered with the flush. Use WRITE_ONCE() for the deletion flag updates because the cache check reads flags without taking state_lock.

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

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

	Issue introduced in 6.4 with commit d5edb9ae8d568745f893c5c5fa3837d85311b131 and fixed in 6.12.113 with commit 0117f1aa189495e6f1ff608681678817995aee39
	Issue introduced in 6.4 with commit d5edb9ae8d568745f893c5c5fa3837d85311b131 and fixed in 6.18.56 with commit 128e800a41270ab197b1cc8043637a2924865608
	Issue introduced in 6.4 with commit d5edb9ae8d568745f893c5c5fa3837d85311b131 and fixed in 7.2.10 with commit 93da3ec938bfdcfb3899428f04c6d0c56fe32952
	Issue introduced in 6.4 with commit d5edb9ae8d568745f893c5c5fa3837d85311b131 and fixed in 7.3-rc6 with commit ee3aadc43ea69d98f666431e787137ac0badbb85

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

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/mac80211/mesh_pathtbl.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/0117f1aa189495e6f1ff608681678817995aee39
	https://git.kernel.org/stable/c/128e800a41270ab197b1cc8043637a2924865608
	https://git.kernel.org/stable/c/93da3ec938bfdcfb3899428f04c6d0c56fe32952
	https://git.kernel.org/stable/c/ee3aadc43ea69d98f666431e787137ac0badbb85