]> git.ipfire.org Git - thirdparty/hostap.git/commit
MLD: Verify Per-STA Profile subelement length in reconf MLE
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 3 Mar 2025 18:32:23 +0000 (20:32 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 3 Mar 2025 18:37:17 +0000 (20:37 +0200)
commit800e481bd71a8d13e054e03efd3e03ee5e560bd1
treeb1a08b11dcab619eb62a3c0b45ea1d814514e9fa
parent351089daa3915843c9a361d61d7441aaf81920f8
MLD: Verify Per-STA Profile subelement length in reconf MLE

Strictly speaking, it is not sufficient to verify that there is enough
space in the Link Info field, but the legth of the Per-STA Profile
subelement needs to be checked as well before using the STA Control
field value. There could be another subelement after the Per-STA Profile
subelement and if the Per-STA Profile subelement would be too short,
data from that following subelement could have been used. This is a
theoretical case, but anyway, better be stricter in verifying the length
fields in this type of cases.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wpa_supplicant/bss.c