batman-adv: tt: prevent TVLV OOB check overflow
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b · < 3256c05d5a9db34346eaf20f52dddde984852d77| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: tt: prevent TVLV OOB check overflow
A TT unicast TVLV contains the number of VLANs stored in it. This number is an u16 and gets multiplied by the size of the struct batadv_tvlv_tt_vlan_data (8 bytes). The size can therefore overflow the u16 used to store the tt_vlan_len. All additional safety checks to prevent out-of-bounds access of the TVLV buffer are invalid due to this overflow.
Using size_t prevents this overflow and ensures that the safety checks compare against the actual buffer requirements.
From the CVE record · Linux
The Linux kernel's batman-adv TT code stores a calculated VLAN data length in a 16-bit value that can overflow. When it processes a TT unicast TVLV, the overflow can invalidate checks intended to prevent out-of-bounds access. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with batman-adv should check whether their kernel is affected; affected versions are not specified.