Page MenuHomeFreeBSD

net80211: fix RSN capability parsing
ClosedPublic

Authored by adrian on Jul 9 2024, 4:57 PM.
Referenced Files
Unknown Object (File)
Tue, Oct 22, 8:20 PM
Unknown Object (File)
Mon, Oct 21, 7:32 AM
Unknown Object (File)
Mon, Oct 21, 6:57 AM
Unknown Object (File)
Mon, Oct 21, 6:57 AM
Unknown Object (File)
Mon, Oct 21, 6:57 AM
Unknown Object (File)
Oct 3 2024, 5:16 AM
Unknown Object (File)
Sep 27 2024, 8:19 AM
Unknown Object (File)
Sep 24 2024, 8:37 AM

Details

Reviewers
None
Group Reviewers
wireless
Commits
rG3ab5e2977883: net80211: fix RSN capability parsing
Summary

The RSN capability field may be the last two bytes in the IE.
802.11-2016 9.4.2.25.1 (General) doesn't require anything
afterwards - the PMKID/List and Group Management Cipher Suite
are optional.

Thus having a check of len > 2 will miss the situation where it
IS the last field.

This showed up when developing MFP, as I'm using optional MFP
at home and optional MFP doesn't encrypt group management frames.
(It should only add the BIP message integrity check IE in each
action frame.)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58591
Build 55479: arc lint + arc unit