net/bonding: fix potential out of bounds read
authorRadu Nicolau <radu.nicolau@intel.com>
Wed, 17 Apr 2019 14:36:47 +0000 (15:36 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:55 +0000 (14:51 +0200)
commit726158060d55bb6848c438757d69b28056c2f09f
tree9b4469feb6b4cf7822d5d56dd3026181a3f73ea6
parent16c86b9843ebc97a55b6d311e4a78ab8c9bcb408
net/bonding: fix potential out of bounds read

Add validation to pointer constructed from the IPv4 header length
in order to prevent malformed packets from generating a potential
out of bounds memory read.

Fixes: 09150784a776 ("net/bonding: burst mode hash calculation")
Cc: stable@dpdk.org
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Chas Williams <chas3@att.com>
drivers/net/bonding/rte_eth_bond_pmd.c