batman-adv: reject oversized global TT response buffers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b · < de6c1dc3c7d01a152607e6fcecee4d5288283f10| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: reject oversized global TT response buffers
batadv_tt_prepare_tvlv_global_data() builds the allocation length for a global TT response in 16-bit temporaries. When a remote originator advertises a large enough global TT, the TT payload length plus the VLAN header offset can exceed 65535 and wrap before kmalloc().
The full-table response path still uses the original TT payload length when it fills tt_change, so the wrapped allocation is too small and batadv_tt_prepare_tvlv_global_data() writes past the end of the heap object before the later packet-size check runs.
Fix this by rejecting TT responses whose TVLV value length cannot fit in the 16-bit TVLV payload length field.
From the CVE record · Linux
The Linux kernel's batman-adv component can allocate too small a buffer for a global TT response when a remote originator advertises a sufficiently large table. Filling the response can then write past the heap buffer before the packet-size check; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with batman-adv should check their versions; affected versions were not provided.