CVE-2016-4476
High · 7.5CVSS
7.5
EPSS
2.9%
Published
May 9, 2016
CISA due date
—
Cloudanix analysis
A flaw in common Wi-Fi software lets attackers remotely shut down wireless login services by sending specially formatted connection requests.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits newline and carriage return characters in WPS passphrase parameters, allowing malformed input to reach internal parsing routines and trigger an unhandled condition that terminates the hostapd or wpa_supplicant daemon.
Why it matters to the business
Wireless authentication services can be taken offline remotely, interrupting user network access and requiring manual restarts of affected access points or supplicants until the service is restored.
How an attack unfolds
An attacker within radio range crafts a WPS message containing embedded newline or carriage return characters in the passphrase field and transmits it to a vulnerable hostapd instance or wpa_supplicant client; the daemon fails to sanitize the input, causing an immediate crash and outage.
How to fix it
Upgrade hostapd and wpa_supplicant to versions later than 2.5 that enforce rejection of newline and carriage return characters in passphrase fields; disable WPS where it is not required as a temporary control.
How to confirm the fix worked
Confirm that current software versions exceed 2.5 and that test WPS operations containing \n or \r characters are rejected with an error rather than causing a process exit; review process monitoring to verify the daemon remains stable under malformed input.
Typical attack path
- Locate a target device running an affected version of hostapd or wpa_supplicant with WPS enabled.
- Craft a WPS association or credential message that injects \n or \r characters into the passphrase parameter.
- Transmit the malformed message over the wireless medium.
- Observe daemon termination and resulting loss of 802.1X or WPA functionality.
How to detect it
Inspect hostapd and wpa_supplicant logs for abrupt process exits or segmentation faults occurring during WPS operations; correlate with wireless frame captures showing unusual passphrase lengths or control characters in WPS messages.
What your security team should do
- Apply vendor updates that enforce strict passphrase character validation as soon as packages become available.
- Disable WPS on all production wireless infrastructure unless explicitly required.
- Implement process restart automation and alerting for hostapd/wpa_supplicant crashes.
- Monitor wireless traffic for anomalous WPS frames as a compensating control until patches are deployed.
The record
hostapd 0.6.7 through 2.5 and wpa_supplicant 0.6.7 through 2.5 do not reject \n and \r characters in passphrase parameters, which allows remote attackers to cause a denial of service (daemon outage) via a crafted WPS operation.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.4 | wpa_supplicant | 0 | 2.5-r3 |
| Debian:11 | wpa | 0 | 2.3-2.4 |
| Debian:12 | wpa | 0 | 2.3-2.4 |
| Debian:13 | wpa | 0 | 2.3-2.4 |
| Debian:7 | wpa | 0 | 1.0-3+deb7u4 |
| Mageia:5 | wpa_supplicant | 0 | 2.3-3.1.mga5 |
| Ubuntu:14.04:LTS | wpa | 0 | 2.1-0ubuntu1.5 |
| Ubuntu:16.04:LTS | wpa | 0 | 2.4-0ubuntu6.2 |
| Ubuntu:18.04:LTS | wpa | 0 | 2.4-0ubuntu10 |
| openSUSE:Tumbleweed | hostapd | 0 | 2.6-1.1 |
| openSUSE:Tumbleweed | wpa_supplicant | 0 | 2.6-1.1 |
Related vulnerabilities
- CVE-2024-5290 An issue was discovered in Ubuntu wpa_supplicant that resulted in loading of arbitrary… Also affects wpa
- CVE-2017-13080 Wi-Fi Protected Access (WPA and WPA2) allows reinstallation of the Group Temporal Key… Also affects wpa
- CVE-2015-5310 The WNM Sleep Mode code in wpa_supplicant 2.x before 2.6 does not properly ignore key… Also affects wpa
- CVE-2015-4141 The WPS UPnP function in hostapd, when using WPS AP, and wpa_supplicant, when using WPS… Also affects wpa
- CVE-2015-1863 Heap-based buffer overflow in wpa_supplicant 1.0 through 2.4 allows remote attackers to… Also affects wpa
- CVE-2014-3686 wpa_supplicant and hostapd 0.7.2 through 2.2, when running with certain configurations… Also affects wpa
- CVE-2023-52424 The IEEE 802.11 standard sometimes enables an adversary to trick a victim into connecting… Also affects wpa
- CVE-2026-113786 pypdf is a free and open-source pure-python PDF library. CWE-20