Skip to contentSkip to conversation

CVE-2026-99589: batman-adv: tt: clear ROAM flag when re-adding a pending local client

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

lore
Share & tools
lore
#0 lore raw

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

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

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

batman-adv: tt: clear ROAM flag when re-adding a pending local client

When a ROAMING_ADV is received for an announced local client, batadv_tt_local_mark_removed() sets BATADV_TT_CLIENT_ROAM, queues a DEL|ROAM change and marks the entry as BATADV_TT_CLIENT_PENDING. If the client sends a frame again before the next TTVN commit, batadv_tt_local_add_existing() only clears the PENDING flag and returns early. The ADD cancels the queued DEL, but the entry keeps the ROAM flag:

* batadv_is_my_client() reports the client as not served by this node
* batadv_tt_local_client_is_roaming() reroutes unicast frames for it to the node which sent the ROAMING_ADV

The ROAM flag is only removed with the next frame of the client.

Since BATADV_TT_CLIENT_ROAM is set together with BATADV_TT_CLIENT_PENDING, it has to be cleared also at the same time with BATADV_TT_CLIENT_PENDING when the client roamed back.

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

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

	Issue introduced in 3.8 with commit 068ee6e204e1f48ba24ec91ce40f5ca833a57a81 and fixed in 6.12.118 with commit fcf9688afc291bd9d383051c12e8bc148b4add62
	Issue introduced in 3.8 with commit 068ee6e204e1f48ba24ec91ce40f5ca833a57a81 and fixed in 6.18.64 with commit 658e7e37113f2ef875ea1b17e626f47d54c331ba
	Issue introduced in 3.8 with commit 068ee6e204e1f48ba24ec91ce40f5ca833a57a81 and fixed in 7.3.5 with commit 32d45d029d9ffdeb99e86ed21406a70485fe08cc
	Issue introduced in 3.8 with commit 068ee6e204e1f48ba24ec91ce40f5ca833a57a81 and fixed in 7.4-rc2 with commit cc2186d7854785b30d423f5d43757b086b300e55

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

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/batman-adv/translation-table.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/fcf9688afc291bd9d383051c12e8bc148b4add62
	https://git.kernel.org/stable/c/658e7e37113f2ef875ea1b17e626f47d54c331ba
	https://git.kernel.org/stable/c/32d45d029d9ffdeb99e86ed21406a70485fe08cc
	https://git.kernel.org/stable/c/cc2186d7854785b30d423f5d43757b086b300e55