batman-adv: ensure minimal ethernet header on TX
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c6c8fea29769d998d94fcec9b9f14d4b52b349d3 · < 9e16b6751a8206de0b865d99bb02771e6751d12d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: ensure minimal ethernet header on TX
As documented in commit 8bd67ebb50c0 ("net: bridge: xmit: make sure we have at least eth header len bytes"), it is possible by for a local user with eBPF TC hook access to attach a tc filter which truncates the packet and redirects to an batadv interface. But the code assumes that at least ETH_HLEN bytes are available and thus might read outside of the available buffer.
The batadv_interface_tx() must therefore always check itself if enough data is available for the ethernet header and don't rely on min_header_len.
From the CVE record · Linux
The Linux kernel’s batman-adv transmit path may read outside the available packet buffer when it receives a packet shorter than an Ethernet header. A local user with eBPF TC hook access can attach a filter that truncates a packet and redirects it to a batadv interface, triggering the issue.
Engineers running Linux kernels with batman-adv should check whether their kernel includes the fix; affected versions were not specified.