linux/drivers/net/ethernet/intel
Natalia Petrova 49f04300d4 i40e: Add checking for null for nlmsg_find_attr()
[ Upstream commit 7fa0b526f8 ]

The result of nlmsg_find_attr() 'br_spec' is dereferenced in
nla_for_each_nested(), but it can take NULL value in nla_find() function,
which will result in an error.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 51616018dd ("i40e: Add support for getlink, setlink ndo ops")
Signed-off-by: Natalia Petrova <n.petrova@fintech.ru>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20230209172833.3596034-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-22 12:59:54 +01:00
..
e1000
e1000e
fm10k
i40e i40e: Add checking for null for nlmsg_find_attr() 2023-02-22 12:59:54 +01:00
iavf
ice ice: xsk: Fix cleaning of XDP_TX frames 2023-02-22 12:59:52 +01:00
igb igb: Fix PPS input and output using 3rd and 4th SDP 2023-02-22 12:59:54 +01:00
igbvf
igc igc: Add ndo_tx_timeout support 2023-02-14 19:11:48 +01:00
ixgb
ixgbe ixgbe: add double of VLAN header when computing the max MTU 2023-02-22 12:59:54 +01:00
ixgbevf
e100.c
Kconfig
Makefile