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.
Product status
33a3bb4a3345bb511f9c69c913da95d4693e2a4e (git) before 79bc0eaeef2c5797317bf2da8e3159a74d62ec47
33a3bb4a3345bb511f9c69c913da95d4693e2a4e (git) before 26dfeee8db81354bfdade155f27f9e16510ad196
33a3bb4a3345bb511f9c69c913da95d4693e2a4e (git) before 03660dab86f93319178a24667f6998526dc4355d
33a3bb4a3345bb511f9c69c913da95d4693e2a4e (git) before 8634c1dbd73adb74d40533ebb7e914efb82e71fb
33a3bb4a3345bb511f9c69c913da95d4693e2a4e (git) before 3d3cf6a7314aca4df0a6dde28ce784a2a30d0166
4.8
Any version before 4.8
6.6.140 (semver)
6.12.90 (semver)
6.18.32 (semver)
7.0.9 (semver)
7.1-rc4 (original_commit_for_fix)
References
git.kernel.org/...c/79bc0eaeef2c5797317bf2da8e3159a74d62ec47
git.kernel.org/...c/26dfeee8db81354bfdade155f27f9e16510ad196
git.kernel.org/...c/03660dab86f93319178a24667f6998526dc4355d
git.kernel.org/...c/8634c1dbd73adb74d40533ebb7e914efb82e71fb
git.kernel.org/...c/3d3cf6a7314aca4df0a6dde28ce784a2a30d0166