CVE-2026-52913: batman-adv: v: stop OGMv2 on disabled interface
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: v: stop OGMv2 on disabled interface
When a batadv_hard_iface is disabled, its mesh_iface pointer is set to NULL. However, batadv_v_ogm_send_meshif() may still dispatch OGMs via batadv_v_ogm_queue_on_if() for interfaces that have since lost their mesh_iface association. This results in a NULL pointer dereference when batadv_v_ogm_queue_on_if() unconditionally calls netdev_priv() on the now NULL hard_iface->mesh_iface to retrieve the batadv_priv.
It is necessary to ensure that the batadv_v_ogm_queue_on_if() checks that it is using the same mesh_iface for which batadv_v_ogm_send_meshif() was called.
The Linux kernel CVE team has assigned CVE-2026-52913 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.6 with commit 0da0035942d47766c32843143fb5dba7a29cb48c and fixed in 5.10.259 with commit d7391a2b854a62235539c68e9cbf6fc7910a8e9a Issue introduced in 4.6 with commit 0da0035942d47766c32843143fb5dba7a29cb48c and fixed in 5.15.210 with commit 70c9f6ab0d8f785087fb74fb85464a9a5288bfdb Issue introduced in 4.6 with commit 0da0035942d47766c32843143fb5dba7a29cb48c and fixed in 6.1.176 with commit 040fe8eb34624002071dd21de9824dfe668ce65d Issue introduced in 4.6 with commit 0da0035942d47766c32843143fb5dba7a29cb48c and fixed in 6.6.143 with commit 31dcb9711abd1dcd2080d9fac05c79dd9997d6bf Issue introduced in 4.6 with commit 0da0035942d47766c32843143fb5dba7a29cb48c and fixed in 6.12.93 with commit aad70db50ea3d7dfe30e402b889ff075a293b287 Issue introduced in 4.6 with commit 0da0035942d47766c32843143fb5dba7a29cb48c and fixed in 6.18.34 with commit 1be1e99cbd5b74a69d3f92200ca87cf1bce852db Issue introduced in 4.6 with commit 0da0035942d47766c32843143fb5dba7a29cb48c and fixed in 7.0.11 with commit 4ff461af943efb5e74d09942d5ffee7644d1e1fe Issue introduced in 4.6 with commit 0da0035942d47766c32843143fb5dba7a29cb48c and fixed in 7.1 with commit f8ce8b8331a1bc44ad4905886a482214d428b253
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-52913
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/bat_v_ogm.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/d7391a2b854a62235539c68e9cbf6fc7910a8e9a https://git.kernel.org/stable/c/70c9f6ab0d8f785087fb74fb85464a9a5288bfdb https://git.kernel.org/stable/c/040fe8eb34624002071dd21de9824dfe668ce65d https://git.kernel.org/stable/c/31dcb9711abd1dcd2080d9fac05c79dd9997d6bf https://git.kernel.org/stable/c/aad70db50ea3d7dfe30e402b889ff075a293b287 https://git.kernel.org/stable/c/1be1e99cbd5b74a69d3f92200ca87cf1bce852db https://git.kernel.org/stable/c/4ff461af943efb5e74d09942d5ffee7644d1e1fe https://git.kernel.org/stable/c/f8ce8b8331a1bc44ad4905886a482214d428b253