Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3780fde authored by Sven Eckelmann's avatar Sven Eckelmann Committed by Sasha Levin
Browse files

batman-adv: Check skb size before using encapsulated ETH+VLAN header



[ Upstream commit c78296665c3d81f040117432ab9e1cb125521b0c ]

The encapsulated ethernet and VLAN header may be outside the received
ethernet frame. Thus the skb buffer size has to be checked before it can be
parsed to find out if it encapsulates another batman-adv packet.

Fixes: 42019357 ("batman-adv: softif bridge loop avoidance")
Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: default avatarAntonio Quartulli <a@unstable.cc>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent aa9be0d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment