kernel_samsung_a53x/drivers/net/ethernet/intel
Rand Deeb 6bbdf10e97 net: ice: Fix potential NULL pointer dereference in ice_bridge_setlink()
[ Upstream commit 06e456a05d669ca30b224b8ed962421770c1496c ]

The function ice_bridge_setlink() may encounter a NULL pointer dereference
if nlmsg_find_attr() returns NULL and br_spec is dereferenced subsequently
in nla_for_each_nested(). To address this issue, add a check to ensure that
br_spec is not NULL before proceeding with the nested attribute iteration.

Fixes: b1edc14a3fbf ("ice: Implement ice_bridge_getlink and ice_bridge_setlink")
Signed-off-by: Rand Deeb <rand.sec96@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 23:19:34 +01:00
..
e1000 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e1000e Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fm10k Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e i40e: disable NAPI right after disabling irqs when handling xsk_pool 2024-11-18 23:19:34 +01:00
iavf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice net: ice: Fix potential NULL pointer dereference in ice_bridge_setlink() 2024-11-18 23:19:34 +01:00
igb igb: Fix potential memory leak in igb_add_ethtool_nfc_entry 2024-11-18 10:58:29 +01:00
igbvf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
igc igc: Fix ambiguity in the ethtool advertising 2024-11-18 10:58:29 +01:00
ixgb Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ixgbe ixgbe: {dis, en}able irqs in ixgbe_txrx_ring_{dis, en}able 2024-11-18 23:19:34 +01:00
ixgbevf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e100.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00