Skip to content

wifi: ath12k: fix NULL deref when MLO link activation fails

Wei Zhang ath12k linux-wireless lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2wifi: ath12k: fix inconsistent arvif state in vdev_create error pathsdrivers/net/wireless/ath/ath12k/mac.c+4 -50 replies
2/2wifi: ath12k: fix NULL deref in change_sta_links for unready linkdrivers/net/wireless/ath/ath12k/mac.c+4 -40 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRameshkumar SundaramBaochen Qiang
SeriesR-b R-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH ath-next 0/2] wifi: ath12k: fix NULL deref when MLO link activation fails

ath12k_mac_op_change_sta_links() adds a link to ahsta->links_map before verifying that the link's vdev is ready, allowing broken links to be processed by subsequent operations and causing NULL dereferences.

Patch 1 fixes three error path inconsistencies in ath12k_mac_vdev_create() that leave arvif state or vdev resources inconsistent: a direct return on wmi_vdev_create failure bypasses err: which clears arvif->ar; and both failure paths in err_peer_del skip the DP peer cleanup and vdev rollback.

Patch 2 uses arvif->is_created (made reliable by patch 1) to guard against links with no vdev before allocating a link station, preventing broken links from entering links_map.

Wei Zhang (2):
wifi: ath12k: fix inconsistent arvif state in vdev_create error paths
wifi: ath12k: fix NULL deref in change_sta_links for unready link

 drivers/net/wireless/ath/ath12k/mac.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

base-commit: 7b25796f571fc09a7aa6fe7efb23edccd326917d

Signature · 1 line
2.34.1