batman-adv: Don't leak information through uninitialized packet fields
The reserved fields in batman-adv packets are not set to a constant value. The
content of these memory regions is leaked unintentionally to the network.
This regression was introduced in 3b27ffb00f
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
This commit is contained in:

committed by
Antonio Quartulli

parent
0c5e45b63d
commit
162d549c69
@@ -214,6 +214,7 @@ static int batadv_interface_tx(struct sk_buff *skb,
|
||||
|
||||
/* batman packet type: broadcast */
|
||||
bcast_packet->header.packet_type = BATADV_BCAST;
|
||||
bcast_packet->reserved = 0;
|
||||
|
||||
/* hw address of first interface is the orig mac because only
|
||||
* this mac is known throughout the mesh
|
||||
|
Reference in New Issue
Block a user