batman-adv: retrieve ethhdr after potential skb realloc on RX
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c6c8fea29769d998d94fcec9b9f14d4b52b349d3 · < 85a71a81854e0e191ad0e533eabb4eff54866feb| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: retrieve ethhdr after potential skb realloc on RX
pskb_may_pull() in batadv_interface_rx() could reallocate the buffer behind the skb. Variables which were pointing to the old buffer need to be reassigned to avoid an use-after-free.
This was done correctly for the VLAN header but missed for the ethernet header which is later used for the TT and AP isolation handling.
From the CVE record · Linux
In the Linux kernel's batman-adv receive path, pskb_may_pull() can reallocate a packet buffer while the Ethernet header still points to the old buffer. Later use of that header in TT and AP isolation handling can cause a use-after-free. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with batman-adv should check their versions; affected versions are not specified.