]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: ensure beacon is non-S1G prior to extracting the beacon timestamp...
authorRichard Kinder <richard.kinder@gmail.com>
Thu, 28 Mar 2024 00:57:25 +0000 (11:57 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:48:46 +0000 (09:48 +0200)
commit1e774f3d34313998958b383f2d487733c73abb2f
tree5350fa56e7ab67f56cce5e9dc849f80d41fc2647
parentd88d3839206992eb6a7dee4909ef32374fb8b1c7
wifi: mac80211: ensure beacon is non-S1G prior to extracting the beacon timestamp field

[ Upstream commit d12b9779cc9ba29d65fbfc728eb8a037871dd331 ]

Logic inside ieee80211_rx_mgmt_beacon accesses the
mgmt->u.beacon.timestamp field without first checking whether the beacon
received is non-S1G format.

Fix the problem by checking the beacon is non-S1G format to avoid access
of the mgmt->u.beacon.timestamp field.

Signed-off-by: Richard Kinder <richard.kinder@gmail.com>
Link: https://msgid.link/20240328005725.85355-1-richard.kinder@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mlme.c