CVE-2021-0326 is a heap overflow in wpa_supplicant's Wi-Fi Direct (P2P) code: versions 1.0 to 2.9 built with CONFIG_P2P miss a length check on a group client's secondary device types, so an attacker in radio range of a device doing P2P discovery can crash it or potentially run code. Android 8.1 to 11 and Siemens SIMATIC RF160B before V2.2 are affected.
Vulnerability summary
CVSS base score
7.5
High severity
EPSS score (FIRST)
5.0%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2021-0326 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| wpa_supplicant (w1.fi hostap project), P2P (Wi-Fi Direct) group information processing | cpe:2.3:a:w1.fi:wpa_supplicant:*:*:*:*:*:*:*:* | v1.0 to v2.9 with CONFIG_P2P (w1.fi 2020-2); fixed by commit 947272f (2020-11-09) and in 2.10; NVD's CPE list does not name w1.fi |
| Android (AOSP wpa_supplicant) | cpe:2.3:o:google:android:*:*:*:*:*:*:*:* | 8.1, 9, 10 and 11 before security patch level 2021-02-01 (Android Security Bulletin, February 2021) |
| Siemens SIMATIC RF160B (6GT2003-0FA00) | — | all versions before V2.2 (Siemens SSA-770721, CISA ICSA-24-074-07) |
What does this mean for affected devices?
CVE-2021-0326 is a heap buffer overflow in the Wi-Fi Direct (P2P) code of wpa_supplicant. NVD's record, filed by Google for Android, says that "in p2p_copy_client_info of p2p.c, there is a possible out of bounds write due to a missing bounds check", which "could lead to remote code execution if the target device is performing a Wi-Fi direct search, with no additional execution privileges needed". NVD scores it 7.5 under CVSS v3.1, vector CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, weakness CWE-787 (NVD). The Android Security Bulletin of February 2021 rates it Critical remote code execution for Android 8.1, 9, 10 and 11, fixed at security patch level 2021-02-01.
Upstream published the same bug as w1.fi advisory 2020-2 on 2021-02-04. Parsing of P2P group information "validates field lengths appropriately", but "processing of the parsed information misses a length check when storing a copy of the secondary device types", so an attacker "within radio range of the device running P2P discovery" can corrupt heap pointers, with impact up to "termination of the wpa_supplicant process and potentially arbitrary code execution". Vulnerable are wpa_supplicant v1.0 to v2.9 built with CONFIG_P2P; the bug was found by Google's OSS-Fuzz. The fix is commit 947272f, "P2P: Fix copying of secondary device types for P2P group client", dated 2020-11-09, and the wpa_supplicant ChangeLog lists it under v2.10 (2022-01-16). P2P is on in a default build: the wpa_supplicant defconfig sets CONFIG_P2P=y. One trap for scanners: NVD's configuration lists Android 8.1 to 11, Debian 9 and 10 and Fedora 32 and 34, but no w1.fi:wpa_supplicant entry, so CPE matching on an embedded Linux image misses it. The Debian tracker lists DLA-2572-1 (stretch 2:2.4-1+deb9u8) and DSA-4898-1 (buster 2:2.7+git20190128+0c1e29f-6+deb10u3).
The industrial device angle is a handheld reader. Siemens ProductCERT SSA-770721, published on 2024-03-12 and republished by CISA as ICSA-24-074-07, covers SIMATIC RF160B (6GT2003-0FA00), "a mobile reader that complements the SIMATIC RF200/300 (HF) and RF600 (UHF) RFID readers". It lists CVE-2021-0326 among 157 CVEs fixed in V2.2, with Siemens' own score of 7.5 (CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C), and reuses Google's Android description for it.
The CVE is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13), and FIRST EPSS gives it 0.04973, the 92.34th percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS). Treat it as high on any client with CONFIG_P2P before 2.10: it needs only radio range and no user action, although NVD rates the attack complexity High.
To fix it, ship wpa_supplicant 2.10 or later, or apply commit 947272f. On devices that never use Wi-Fi Direct, set p2p_disabled=1 or build without CONFIG_P2P, as the advisory suggests. Android devices need security patch level 2021-02-01 or later, and SIMATIC RF160B needs V2.2. Our hostapd and wpa_supplicant vulnerabilities guide shows how to find P2P support in a firmware image; another client-side wpa_supplicant page is CVE-2023-52160, and our memory corruption fix guide covers bounds checks in parsers like this one.
Evidence
- Out-of-bounds write in p2p_copy_client_info of p2p.c; possible RCE during Wi-Fi Direct search; NVD CVSS v3.1 7.5 (AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H), CWE-787; configuration lists Android 8.1-11, Debian 9/10, Fedora 32/34, no w1.fi CPE. — NVD
- Android Security Bulletin February 2021: CVE-2021-0326 (A-172937525) RCE, Critical, AOSP 8.1, 9, 10, 11; patch level 2021-02-01. — Android Security Bulletin
- w1.fi 2020-2 (2021-02-04): missing length check when storing secondary device types; attacker in radio range of a device running P2P discovery; v1.0-v2.9 with CONFIG_P2P; found by OSS-Fuzz; mitigations p2p_disabled=1 or remove CONFIG_P2P. — w1.fi advisory 2020-2
- Commit 947272febe (2020-11-09): P2P: Fix copying of secondary device types for P2P group client. — hostap commit 947272f
- wpa_supplicant v2.10 (2022-01-16) fixes P2P group information processing (w1.fi 2020-2); defconfig sets CONFIG_P2P=y. — wpa_supplicant ChangeLog and defconfig
- SSA-770721 (2024-03-12): SIMATIC RF160B before V2.2 affected by CVE-2021-0326 among 157 CVEs; Siemens CVSS 7.5; update to V2.2. — Siemens ProductCERT SSA-770721
- CISA ICSA-24-074-07 republishes SSA-770721 (SIMATIC RF160B < V2.2). — CISA CSAF ICSA-24-074-07
- Debian: DLA-2572-1 (stretch 2:2.4-1+deb9u8), DSA-4898-1 (buster 2:2.7+git20190128+0c1e29f-6+deb10u3). — Debian Security Tracker
- Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.04973 (92.34th percentile), dataset 2026-11-16, read 2026-11-16. — FIRST EPSS

Related advisories
Sources
- NVD
- Android Security Bulletin, February 2021
- w1.fi security advisory 2020-2: wpa_supplicant P2P group information processing vulnerability
- hostap commit 947272f: P2P: Fix copying of secondary device types for P2P group client
- wpa_supplicant ChangeLog (hostap.git)
- wpa_supplicant defconfig (hostap.git)
- Siemens ProductCERT SSA-770721: Multiple Vulnerabilities in SIMATIC RF160B before V2.2
- CISA ICS advisory ICSA-24-074-07 (CSAF): Siemens SIMATIC
- Debian Security Tracker
- CISA KEV
- FIRST EPSS
Frequently asked questions
Is a device without Wi-Fi Direct affected by CVE-2021-0326?
Only if the P2P code is compiled in and enabled. The w1.fi advisory limits it to builds with CONFIG_P2P and lists p2p_disabled=1 or removing CONFIG_P2P as mitigations. wpa_supplicant's defconfig turns CONFIG_P2P on, so check the build configuration rather than assuming it is off.
Why can a vulnerability scanner miss CVE-2021-0326 in embedded Linux?
Because the CVE was filed for Android. NVD's configuration lists Android, Debian and Fedora but no w1.fi:wpa_supplicant CPE, so a scan that matches the wpa_supplicant CPE and version alone will not report it. Map it by the w1.fi 2020-2 advisory: v1.0 to v2.9 with CONFIG_P2P.
Which products have fixes for CVE-2021-0326?
Upstream fixed it in commit 947272f and wpa_supplicant 2.10. Android 8.1 to 11 devices need security patch level 2021-02-01 or later (Android Security Bulletin), and Siemens SSA-770721 names SIMATIC RF160B V2.2. Debian backported it in DLA-2572-1 and DSA-4898-1.
Is CVE-2021-0326 in the CISA KEV catalog?
No, not as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.04973, the 92.34th percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?