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 net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
e1000e e1000e: Fix TX dispatch condition 2022-11-30 11:26:55 -08:00
fm10k fm10k: Fix error handling in fm10k_init_module() 2022-11-23 08:36:55 -08:00
i40e i40e: Add checking for null for nlmsg_find_attr() 2023-02-22 12:59:54 +01:00
iavf iavf: schedule watchdog immediately when changing primary MAC 2023-02-01 08:34:43 +01:00
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 net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
igc igc: Add ndo_tx_timeout support 2023-02-14 19:11:48 +01:00
ixgb net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
ixgbe ixgbe: add double of VLAN header when computing the max MTU 2023-02-22 12:59:54 +01:00
ixgbevf ixgbevf: Fix resource leak in ixgbevf_init_module() 2022-11-23 08:36:54 -08:00
e100.c e100: Fix possible use after free in e100_xmit_prepare 2022-11-23 08:38:22 -08:00
Kconfig ice: support crosstimestamping on E822 devices if supported 2021-12-21 09:11:40 -08:00
Makefile