Skip to contentSkip to conversation

CVE-2026-93204: batman-adv: dat: atomically update mac addresses

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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: dat: atomically update mac addresses

When a MAC address is updated in batadv_dat_entry_add(), it is done using a simple copy function. A parallel reader might only see parts of this update. In worst case, the reader is transporting the half updated MAC address over the network or is creating an ARP response using it - poisoning the ARP cache.

atomic64_t can be used to store the 48 bit of a mac address. A reader will then either see the old mac address or the new one - never a mixture of both.

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

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

	Issue introduced in 3.8 with commit 2f1dfbe185075a50dc8f0490a136377af53a1c62 and fixed in 5.15.221 with commit 159360a0de831845c4500b4f8638decdcd624040
	Issue introduced in 3.8 with commit 2f1dfbe185075a50dc8f0490a136377af53a1c62 and fixed in 6.1.188 with commit 259db2c04586d40b82c5c3002b1e28b0698a0bb7
	Issue introduced in 3.8 with commit 2f1dfbe185075a50dc8f0490a136377af53a1c62 and fixed in 6.6.157 with commit 1674855a5b6eacfe35f4db3095d7055c25467274
	Issue introduced in 3.8 with commit 2f1dfbe185075a50dc8f0490a136377af53a1c62 and fixed in 6.12.110 with commit 66238e2a74eca5dabf85b0cd2c3c944e474dc2fd
	Issue introduced in 3.8 with commit 2f1dfbe185075a50dc8f0490a136377af53a1c62 and fixed in 6.18.52 with commit a5e4d6cb4f6848b8906c1c493f99a8ccc0638515
	Issue introduced in 3.8 with commit 2f1dfbe185075a50dc8f0490a136377af53a1c62 and fixed in 7.2.6 with commit f68038c77a2f38c09c7e2e4f7fa1f4e246fdf2c9
	Issue introduced in 3.8 with commit 2f1dfbe185075a50dc8f0490a136377af53a1c62 and fixed in 7.3-rc1 with commit e6de568d3eda3e3c01c868fabd7a9535d5ee4a73

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

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/distributed-arp-table.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/159360a0de831845c4500b4f8638decdcd624040
	https://git.kernel.org/stable/c/259db2c04586d40b82c5c3002b1e28b0698a0bb7
	https://git.kernel.org/stable/c/1674855a5b6eacfe35f4db3095d7055c25467274
	https://git.kernel.org/stable/c/66238e2a74eca5dabf85b0cd2c3c944e474dc2fd
	https://git.kernel.org/stable/c/a5e4d6cb4f6848b8906c1c493f99a8ccc0638515
	https://git.kernel.org/stable/c/f68038c77a2f38c09c7e2e4f7fa1f4e246fdf2c9
	https://git.kernel.org/stable/c/e6de568d3eda3e3c01c868fabd7a9535d5ee4a73