]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
batman-adv: tt: reject oversized local TVLV buffers
authorSven Eckelmann <sven@narfation.org>
Sat, 2 May 2026 17:08:37 +0000 (19:08 +0200)
committerSven Eckelmann <sven@narfation.org>
Tue, 12 May 2026 06:33:52 +0000 (08:33 +0200)
commit1e9fab756f8395096d5bba7be0c373c4c8f5d165
tree2dad6022b0a49ebe9df0602adfa246af161930ef
parent77098e4bea37af51d3962efa88a5af2ea5e1ac57
batman-adv: tt: reject oversized local TVLV buffers

The commit 3a359bf5c61d ("batman-adv: reject oversized global TT response
buffers") added a check to ensure that a global return buffer size can be
stored in an u16. The same buffer handling also exists for the local data
buffer but was not touched.

A similar check should be also be in place for the local TVLV buffer. It
doesn't have the similar attack surface because it is only generated from
locally discovered MAC addresses but the dynamic nature could still cause
temporarily to large buffers.

Cc: stable@kernel.org
Fixes: 7ea7b4a14275 ("batman-adv: make the TT CRC logic VLAN specific")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/translation-table.c