Android security tags, read closely by Lightrion

CVE-2026-28662 AI-generated analysis

platform/external/wpa_supplicant_8, P2P (Wi-Fi Direct) P2P2 provision discovery / pairing bootstrapping (src/p2p/p2p_pd.c)

AI-generated: written from the bulletin and the fixing diffs by claude-fable-5-1, then checked against the code by claude-opus-5-5 (5 corrections). Verify against the commit before relying on it.

Adds a bounds check in p2p_process_prov_disc_bootstrap_req (src/p2p/p2p_pd.c) that rejects a P2P2 PBMA comeback cookie longer than the fixed-size dev->bootstrap_params->cookie buffer, and enables the UBSan "bounds" sanitizer on a wpa_supplicant cc_library in wpa_supplicant/Android.bp.

Root cause

In p2p_process_prov_disc_bootstrap_req, when a Provision Discovery Request carries a PBMA attribute and status P2P_SC_COMEBACK, the code reads a one-byte cookie_len from the frame. It only checked that the attribute was long enough (msg->pbma_info_len < 1 + cookie_len) and never compared cookie_len with the size of the fixed-size cookie array in dev->bootstrap_params. The commit message describes the result as a heap overflow triggered by a malicious Wi-Fi Direct peer sending an oversized PBMA cookie length. In the shown code, cookie_len is next used in the comparison with dev->bootstrap_params->cookie_len and in os_memcmp. The material does not show which access actually overflows.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to September 2026 · Findings