vxlan: use neigh_ha_snapshot() in route_shortcircuit()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e4f67addf158f98f8197e08974966b18480dc751 · < ff89415d34c3ab9f5312316423122e664ed3524f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vxlan: use neigh_ha_snapshot() in route_shortcircuit()
The neighbour hardware address n->ha can be updated asynchronously by the neighbour subsystem, protected by n->ha_lock seqlock. Reading n->ha without holding the seqlock loop can lead to torn reads or reading a partially updated MAC address.
Use neigh_ha_snapshot() in route_shortcircuit() to safely copy n->ha under read_seqbegin()/read_seqretry() lock protection before using it.
Note that arp_reduce() and neigh_reduce() seem to have the same issue left for future patches.
From the CVE record · Linux
The Linux kernel’s VXLAN route_shortcircuit() can read a neighbour MAC address while the neighbour subsystem updates it asynchronously, producing a torn or partially updated address. The input does not establish whether an attacker can trigger this condition or specify authentication or user-interaction requirements.
Engineers running Linux kernels with VXLAN should check whether their kernel includes the fix; affected versions are not specified.