kernel_samsung_a53x/drivers/net/ethernet/intel/ice
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
..
ice.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_adminq_cmd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_arfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_arfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_base.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_base.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_controlq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_controlq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_dcb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_dcb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_dcb_lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_dcb_lib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_dcb_nl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_dcb_nl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_devids.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_devlink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_devlink.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_ethtool_fdir.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_fdir.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_fdir.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_flex_pipe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_flex_pipe.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_flex_type.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_flow.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_flow.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_fltr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_fltr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_fw_update.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_fw_update.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_hw_autogen.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_lan_tx_rx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_lib.c ice: fix over-shifted variable 2024-11-08 11:26:08 +01:00
ice_lib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_main.c net: ice: Fix potential NULL pointer dereference in ice_bridge_setlink() 2024-11-18 23:19:34 +01:00
ice_nvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_nvm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_osdep.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_protocol_type.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_sched.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_sched.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_sriov.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_sriov.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_status.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_switch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_switch.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_txrx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_txrx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_txrx_lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_txrx_lib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_type.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_virtchnl_pf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_virtchnl_pf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_xsk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ice_xsk.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00