CVE-2026-46208: batman-adv: stop tp_meter sessions during mesh teardown
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: stop tp_meter sessions during mesh teardown
TP meter sessions remain linked on bat_priv->tp_list after the netlink request has already finished. When the mesh interface is removed, batadv_mesh_free() currently tears down the mesh without first draining these sessions.
A running sender thread or a late incoming tp_meter packet can then keep processing against a mesh instance which is already shutting down. Synchronize tp_meter with the mesh lifetime by stopping all active sessions from batadv_mesh_free() and waiting for sender threads to exit before teardown continues.
The Linux kernel CVE team has assigned CVE-2026-46208 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 6.6.140 with commit 79bc0eaeef2c5797317bf2da8e3159a74d62ec47 Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 6.12.90 with commit 26dfeee8db81354bfdade155f27f9e16510ad196 Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 6.18.32 with commit 03660dab86f93319178a24667f6998526dc4355d Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 7.0.9 with commit 8634c1dbd73adb74d40533ebb7e914efb82e71fb Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 7.1-rc4 with commit 3d3cf6a7314aca4df0a6dde28ce784a2a30d0166
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-46208
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/main.c
net/batman-adv/tp_meter.c
net/batman-adv/tp_meter.h
net/batman-adv/types.h
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/79bc0eaeef2c5797317bf2da8e3159a74d62ec47 https://git.kernel.org/stable/c/26dfeee8db81354bfdade155f27f9e16510ad196 https://git.kernel.org/stable/c/03660dab86f93319178a24667f6998526dc4355d https://git.kernel.org/stable/c/8634c1dbd73adb74d40533ebb7e914efb82e71fb https://git.kernel.org/stable/c/3d3cf6a7314aca4df0a6dde28ce784a2a30d0166