Kernel bug / wireless

net80211: TKIP MIC setters overwrite the start of the key

New key accessors on main write the MIC key to the wrong offset. Every driver would get a damaged TKIP key.

A bug under a magnifying glass.
Component
sys/net80211/ieee80211_crypto.h
Found on
Reading main while writing the cywfm key path
Status
Drafted (regression in 16-CURRENT)
Written

main gained accessor functions for net80211 key material. The two setters for the TKIP MIC keys clear the first 8 bytes of the key buffer instead of the MIC part. The same lines appear in the related reviews D58705 and D58384 (by other developers).

stable/15 does not have these setters, so 15.x releases are not affected. Found by reading only: nothing was compiled or run against main, and no TKIP network was used. The report is drafted with the "regression" keyword for Base System / wireless.

All kernel bugs

Built with ssg