mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
mpdu: Validate action frame minimum length
Action frames must at least have the Category byte
This commit is contained in:
parent
3bd265e02f
commit
5a40c49c44
@ -587,7 +587,7 @@ static bool validate_mgmt_mpdu(const struct mmpdu_header *mpdu, int len,
|
||||
return validate_deauthentication_mmpdu(mpdu, len, offset);
|
||||
case MPDU_MANAGEMENT_SUBTYPE_ACTION:
|
||||
case MPDU_MANAGEMENT_SUBTYPE_ACTION_NO_ACK:
|
||||
return true;
|
||||
return *offset + 1 <= len;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user