]> 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 17:43:54 +0000 (13:43 -0400)
commitcf15ab553dd0dabd8718995aedbe90e3ff0bc7e1
tree57fa4aa5660201d37e89087487c7aa6e9d6a64fc
parent3847c17aa23a14e7dcb6d9ed76a787cf33bd7cd8
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)

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