[PATCH] P2P: Check PBMA attribute length before reading bootstrap

Jouni Malinen j at w1.fi
Wed Nov 18 01:28:58 PST 2026


On Wed, Nov 18, 2026 at 11:19:41AM +0800, Junyu Lai wrote:
> All P2P2 Pairing and Bootstrapping Method Attributes (PBMA) carry at
> least a 2-octet Bootstrapping Method field. However, attribute parsing
> previously allowed 1-octet PBMA payloads, and Provision Discovery
> bootstrap request handling read the 16-bit bootstrapping method without
> verifying that at least 2 octets were present.
> 
> - Require at least 2 octets when parsing
>   P2P_ATTR_PAIRING_AND_BOOTSTRAPPING.
> - Check that PBMA length is at least 2 octets before reading the
>   bootstrapping method in Provision Discovery bootstrap requests.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list