]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP MLD: Add NULL check for mld pointer during MLD link removal
authorGovindaraj Saminathan <quic_gsaminat@quicinc.com>
Wed, 27 Nov 2024 07:25:35 +0000 (12:55 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 27 Nov 2024 17:18:57 +0000 (19:18 +0200)
commite0aac2cd3da33f03dbff807f4f6c15a555aa7ea6
treebb4027ddaf842d98d27590de2a4658da3d5b9754
parenta158fecc9ce87a827007fdafe0bf7c5f3887f8c1
AP MLD: Add NULL check for mld pointer during MLD link removal

MLD control interface creation failed randomly because the existing
control interface was not properly cleaned up. During the failure case
handling, the memory allocated for hapd->mld is freed in
hostapd_bss_setup_multi_link(). Subsequently, when performing MLD link
removal during the interface down, hostapd_mld_remove_link() attempts to
access the mld pointer without NULL check, causing a segmentation fault.

To prevent this issue, add a validation to check if the mld pointer
is NULL before accessing it.

Signed-off-by: Govindaraj Saminathan <quic_gsaminat@quicinc.com>
src/ap/hostapd.c