HomeFreeBSD

urtw(4): add length checks in Rx path.

Description

urtw(4): add length checks in Rx path.

  • Check if buffer can contain Rx descriptor before accessing it.
  • Verify upper / lower bounds for frame length.
  • Do not pass too short frames into ieee80211_find_rxnode().

While here:

  • Move cleanup to the function end.
  • Reuse IEEE80211_IS_DATA() macro.

MFC after: 1 week

Details

Provenance
avosAuthored on
Parents
rS343237: MFC r343130
Branches
Unknown
Tags
Unknown