Rand Deeb 06e456a05d net: ice: Fix potential NULL pointer dereference in ice_bridge_setlink()
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>
2024-03-05 09:49:27 -08:00
..
2024-02-28 12:20:00 -08:00
2024-01-12 11:32:19 -08:00
2024-02-17 08:56:41 -08:00
2024-02-10 08:02:48 -08:00
2024-02-06 14:10:47 +08:00
2024-01-18 11:37:24 -08:00
2024-01-10 08:45:22 -08:00
2024-01-18 09:48:40 -08:00
2024-01-18 11:37:24 -08:00
2024-02-23 09:17:47 -08:00
2024-01-18 11:37:24 -08:00
2024-01-09 16:32:11 -08:00
2024-02-02 12:52:44 -08:00
2024-02-24 15:59:26 -08:00
2024-01-18 11:37:24 -08:00
2024-01-17 15:25:27 -08:00
2023-12-15 17:07:05 +01:00
2024-01-18 15:16:57 -08:00
2024-01-18 11:37:24 -08:00
2024-02-05 16:16:24 +01:00
2024-01-18 16:44:03 -08:00
2024-02-15 10:19:55 -08:00
2024-01-05 15:55:41 +05:30
2024-01-17 14:37:40 -08:00
2024-01-11 11:31:46 -08:00
2024-02-23 09:54:13 -08:00
2024-02-23 13:53:54 +01:00
2024-01-18 17:08:31 -08:00
2024-02-27 12:52:51 +00:00
2023-12-15 17:27:04 +01:00
2024-02-17 08:52:38 -08:00
2024-01-04 17:03:47 +01:00
2024-02-25 10:41:57 -08:00
2024-01-18 16:44:03 -08:00
2024-01-18 15:57:25 -08:00
2024-01-18 16:44:03 -08:00
2024-01-18 16:44:03 -08:00
2024-01-12 13:32:30 -08:00
2024-01-12 12:38:37 +01:00