batman-adv: dat: atomically update mac addresses
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2f1dfbe185075a50dc8f0490a136377af53a1c62 · < a5e4d6cb4f6848b8906c1c493f99a8ccc0638515| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel’s batman-adv DAT code, a parallel reader can see a partially updated MAC address. This can cause the kernel to send the mixed address over the network or use it in an ARP response, potentially poisoning an ARP cache. The input does not specify authentication or user-interaction requirements.
Operators running Linux kernels with batman-adv should check their systems; affected versions are not specified.