batman-adv: access unicast_ttvn skb->data only after skb realloc
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c018ad3de61a1dc4194879a53e5559e094aa7b1a · < b8afcf799b2cc92c41beebd029e53ed18960184a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: access unicast_ttvn skb->data only after skb realloc
The pskb_may_pull() called by batadv_get_vid() 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 ethernet header but missed for the unicast_packet pointer.
From the CVE record · Linux
In the Linux kernel's batman-adv component, a packet-buffer reallocation can leave a unicast packet pointer referring to freed memory. This can cause a use-after-free; the input does not specify how an attacker could trigger it, whether authentication or user interaction is needed, or what further impact is possible.
Operators running Linux kernels with batman-adv should check their versions against the vendor advisory; affected versions were not provided.