]> 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)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 19 Nov 2021 00:01:24 +0000 (00:01 +0000)
commite13d483c5677d12b52f1c81537d54faa85ed43b9
treed9e7443deedcc112c18096d9bba120c3151dde7c
parent37b2cf4e6a978dbea35009e361dfecab8efc0775
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)
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