Skip to contentSkip to conversation

CVE-2026-46238: batman-adv: stop caching unowned originator pointers in BAT IV

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

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: stop caching unowned originator pointers in BAT IV

BAT IV keeps the last-hop neighbor address in each neigh_node, but some paths also cache an originator pointer derived from a temporary lookup. That pointer is not owned by the neigh_node and may no longer refer to a live originator entry after purge handling runs.

Stop storing the auxiliary originator pointer in the BAT IV neighbor state. When BAT IV needs the neighbor originator data, resolve it from the stored neighbor address and drop the reference again after use.

[sven: avoid bonding logic for outgoing OGM]

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

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

	Issue introduced in 2.6.38 with commit c6c8fea29769d998d94fcec9b9f14d4b52b349d3 and fixed in 6.6.140 with commit aafcbaf1159ea224528ca4075d0ba8c10ef374af
	Issue introduced in 2.6.38 with commit c6c8fea29769d998d94fcec9b9f14d4b52b349d3 and fixed in 6.12.90 with commit 6e20700f8c524ac379ba8274ff5d453023b7c006
	Issue introduced in 2.6.38 with commit c6c8fea29769d998d94fcec9b9f14d4b52b349d3 and fixed in 6.18.32 with commit 09dc0d1a12222ffca6481916eab3cfea477b9620
	Issue introduced in 2.6.38 with commit c6c8fea29769d998d94fcec9b9f14d4b52b349d3 and fixed in 7.0.9 with commit 67bceeb22207f1f5a402973a3a0809e5f2698f38
	Issue introduced in 2.6.38 with commit c6c8fea29769d998d94fcec9b9f14d4b52b349d3 and fixed in 7.1-rc4 with commit f03e8583532941b07761c5429de7d50766fa3110

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

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_iv_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/aafcbaf1159ea224528ca4075d0ba8c10ef374af
	https://git.kernel.org/stable/c/6e20700f8c524ac379ba8274ff5d453023b7c006
	https://git.kernel.org/stable/c/09dc0d1a12222ffca6481916eab3cfea477b9620
	https://git.kernel.org/stable/c/67bceeb22207f1f5a402973a3a0809e5f2698f38
	https://git.kernel.org/stable/c/f03e8583532941b07761c5429de7d50766fa3110