Skip to contentSkip to conversation

CVE-2026-63835: batman-adv: v: prevent OGM aggregation on disabled hardif

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

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: v: prevent OGM aggregation on disabled hardif

When an interface gets disabled, the worker is correctly disabled by batadv_hardif_disable_interface() -> ... -> batadv_v_ogm_iface_disable(). In this process, the skb aggr_list is also freed.

But batadv_v_ogm_send_meshif() can still queue new skbs (via batadv_v_ogm_queue_on_if()) to the aggr_list. This will only stop after all cores can no longer find the RCU protected list of hard interfaces. These queued skbs will never be freed or consumed by batadv_v_ogm_aggr_work.

The batadv_v_ogm_iface_disable() function must block batadv_v_ogm_queue_on_if() to avoid leak of skbs.

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

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

	Issue introduced in 5.4 with commit f89255a02f1d75d8e1b9d1c31435fcb64840cb2a and fixed in 5.10.260 with commit d462ced79dd430200cf888984e8005da77fc810b
	Issue introduced in 5.4 with commit f89255a02f1d75d8e1b9d1c31435fcb64840cb2a and fixed in 5.15.211 with commit f79deaaf822ab0ee2424cf28781f9ab91576bea3
	Issue introduced in 5.4 with commit f89255a02f1d75d8e1b9d1c31435fcb64840cb2a and fixed in 6.1.177 with commit d3569327fc7395b2b0461a0a0cb77a0bb74786c0
	Issue introduced in 5.4 with commit f89255a02f1d75d8e1b9d1c31435fcb64840cb2a and fixed in 6.6.144 with commit 97644fdaaf6446ffbe182c5eb804fceb5b1a51b7
	Issue introduced in 5.4 with commit f89255a02f1d75d8e1b9d1c31435fcb64840cb2a and fixed in 6.12.95 with commit f04dde74399431fb07abbdd9cd5d0ed624771d04
	Issue introduced in 5.4 with commit f89255a02f1d75d8e1b9d1c31435fcb64840cb2a and fixed in 6.18.38 with commit 3d4548c96d6f21ac1a9b06c5f82f3ef439c87023
	Issue introduced in 5.4 with commit f89255a02f1d75d8e1b9d1c31435fcb64840cb2a and fixed in 7.1.3 with commit 86ab6b6fb5b82163bf6c45780bb72150021d7349
	Issue introduced in 5.4 with commit f89255a02f1d75d8e1b9d1c31435fcb64840cb2a and fixed in 7.2-rc1 with commit d11c00b95b2a3b3934007fc003dccc6fdcc061ad

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

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.c
net/batman-adv/bat_v_ogm.c
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/d462ced79dd430200cf888984e8005da77fc810b
	https://git.kernel.org/stable/c/f79deaaf822ab0ee2424cf28781f9ab91576bea3
	https://git.kernel.org/stable/c/d3569327fc7395b2b0461a0a0cb77a0bb74786c0
	https://git.kernel.org/stable/c/97644fdaaf6446ffbe182c5eb804fceb5b1a51b7
	https://git.kernel.org/stable/c/f04dde74399431fb07abbdd9cd5d0ed624771d04
	https://git.kernel.org/stable/c/3d4548c96d6f21ac1a9b06c5f82f3ef439c87023
	https://git.kernel.org/stable/c/86ab6b6fb5b82163bf6c45780bb72150021d7349
	https://git.kernel.org/stable/c/d11c00b95b2a3b3934007fc003dccc6fdcc061ad