]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: reject mixed plaintext/encrypted fragments
authorMathy Vanhoef <Mathy.Vanhoef@kuleuven.be>
Sun, 6 Jun 2021 22:10:41 +0000 (22:10 +0000)
committerMark Johnston <markj@FreeBSD.org>
Tue, 15 Mar 2022 18:16:01 +0000 (14:16 -0400)
commit060c556da720145912ac79f67e91ef656f74a78b
tree986e9e349680e2fb470e689eeed6cb1d283c385b
parent46f1fb82372e38a2e32bf47522cfe1f67de144b2
net80211: reject mixed plaintext/encrypted fragments

ieee80211_defrag() accepts fragmented 802.11 frames in a protected Wi-Fi
network even when some of the fragments are not encrypted.
Track whether the fragments are encrypted or not and only accept
successive ones if they match the state of the first fragment.

This relates to section 6.3 in the 2021 Usenix "FragAttacks" (Fragment
and Forge: Breaking Wi-Fi Through Frame Aggregation and Fragmentation)
paper.

Submitted by: Mathy Vanhoef (Mathy.Vanhoef kuleuven.be)
Security: CVE-2020-26147
PR: 256118

(cherry picked from commit 11572d7d7fb9802ceb46ea9dc6cbe3bb95373e55)
(cherry picked from commit e13d483c5677d12b52f1c81537d54faa85ed43b9)
(cherry picked from commit 00cd5a2f614ae2cf1daa30cde7f91de9cdde2393)

Approved by: so
Security: FreeBSD-SA-22:02.wifi
sys/net80211/ieee80211_adhoc.c
sys/net80211/ieee80211_hostap.c
sys/net80211/ieee80211_input.c
sys/net80211/ieee80211_input.h
sys/net80211/ieee80211_mesh.c
sys/net80211/ieee80211_sta.c
sys/net80211/ieee80211_wds.c