batman-adv: dat: handle forward allocation error
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 785ea1144182c341b8b85b0f8180291839d176a8 · < 9cceea8eeba710def2a5707ee00f00c74a9a1cac| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: dat: handle forward allocation error
batadv_dat_forward_data() calls pskb_copy_for_clone() to duplicate an skb for each DHT candidate, but does not check the return value before passing it to batadv_send_skb_prepare_unicast_4addr(). That function dereferences the skb unconditionally, so a failed allocation triggers a NULL pointer dereference.
Skip forwarding to the current DHT candidate on allocation failure.
From the CVE record · Linux
The Linux kernel's batman-adv DAT forwarding path does not check whether copying a packet succeeds. If allocation fails, the next function dereferences a NULL pointer and can crash the kernel. The input does not establish whether an attacker can trigger this remotely, whether authentication is needed, or whether user interaction is required.
Engineers running Linux kernels with batman-adv should check their versions against the vendor advisory; affected versions were not provided.