batman-adv: stop tp_meter sessions during mesh teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 33a3bb4a3345bb511f9c69c913da95d4693e2a4e · < 03660dab86f93319178a24667f6998526dc4355d| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel's batman-adv component, tp_meter sessions can remain active when a mesh interface is removed. A running sender thread or late incoming tp_meter packet can then continue processing against the shutting-down mesh; the input does not establish whether an attacker can trigger this or whether authentication or user interaction is required.
Operators running the Linux kernel with batman-adv should check their installations; affected versions are not specified.