Page MenuHomeFreeBSD

net80211: fix RSN capability parsing
ClosedPublic

Authored by adrian on Jul 9 2024, 4:57 PM.
Referenced Files
Unknown Object (File)
Sun, Sep 8, 10:47 PM
Unknown Object (File)
Sun, Sep 8, 4:56 PM
Unknown Object (File)
Sun, Sep 8, 10:58 AM
Unknown Object (File)
Sun, Sep 8, 6:01 AM
Unknown Object (File)
Sat, Aug 31, 3:04 PM
Unknown Object (File)
Sat, Aug 31, 3:04 PM
Unknown Object (File)
Sat, Aug 31, 3:03 PM
Unknown Object (File)
Sat, Aug 31, 3:03 PM

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 Not Applicable
Unit
Tests Not Applicable