CVE-2015-4142: Buffer Overflow
Integer underflow in the WMM Action frame parser in hostapd 0.5.5 through 2.4 and wpasupplicant 0.7.0 through 2.4, when used for AP mode MLME/SME functionality, allows remote attackers to cause a denial of service (crash) via a crafted frame, which triggers an out-of-bounds read.
Other sources
The following flaw was found in wpasupplicant:
A vulnerability was found in WMM Action frame processing in a case where hostapd or wpasupplicant is used to implement AP mode MLME/SME functionality (i.e., Host AP driver of a mac80211-based driver on Linux).
The AP mode WMM Action frame parser in hostapd/wpasupplicant goes through the variable length information element part with the length of this area calculated by removing the header length from the total length of the frame. The frame length is previously verified to be large enough to include the IEEE 802.11 header, but the couple of additional bytes after this header are not explicitly verified and as a result of this, there may be an integer underflow that results in the signed integer variable storing the length becoming negative. This negative value is then interpreted as a very large unsigned integer length when parsing the information elements. This results in a buffer read overflow and process termination.
This vulnerability can be used to perform denial of service attacks by an attacker that is within radio range of the AP that uses hostapd of wpasupplicant for MLME/SME operations.
Vulnerable versions/configurations
hostapd v0.5.5-v2.4 with CONFIGDRIVERHOSTAP=y or CONFIGDRIVERNL80211=y in the build configuration (hostapd/.config).
wpasupplicant v0.7.0-v2.4 with CONFIGAP=y or CONFIGP2P=y and CONFIGDRIVERHOSTAP=y or CONFIGDRIVERNL80211=y in the build configuration (wpasupplicant/.config) and AP (including P2P GO) mode used at runtime.
Upstream patch:
http://w1.fi/security/2015-3/
Possible workarounds:
- wpasupplicant: Do not enable AP mode or P2P GO operation at runtime
CVE request:
http://seclists.org/oss-sec/2015/q2/397
External References:
http://w1.fi/security/2015-3/integer-underflow-in-ap-mode-wmm-action-frame.txt
— Red Hat
Wi-Fi. This issue was addressed with improved checks.
— Apple
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/wpato a version that resolves this vulnerability.Fixed in 2:2.7+git20190128+0c1e29f-6+deb10u3Fixed in 2:2.9.0-21Fixed in 2:2.10-12Fixed in 2:2.10-15 - Upgrade
Upgrade
Apple iOS and iPadOSto a version that resolves this vulnerability.Fixed in 15.5 - Upgrade
Upgrade
Apple iOS, iPadOS, and macOSto a version that resolves this vulnerability.Fixed in 15.5 - Upgrade
Upgrade
redhat/wpa_supplicantto a version that resolves this vulnerability.Fixed in 2.5 - Upgrade
Upgrade
redhat/hostapdto a version that resolves this vulnerability.Fixed in 2.5 - Configuration
Do not enable AP mode or P2P GO operation at runtime.
wpa_supplicant AP mode and P2P GO operation = disabled
Event History
Peer vulnerabilities
Found alongside the following vulnerabilities.
- CVE-2022-26702
- CVE-2022-26751
- CVE-2022-26736
- CVE-2022-26737
- CVE-2022-26738
- CVE-2022-26739
- CVE-2022-26740
- CVE-2022-26763
- CVE-2022-32781
- CVE-2022-26744
- CVE-2022-26711
- CVE-2022-26701
- CVE-2022-26771
- CVE-2022-26714
- CVE-2022-26757
- CVE-2022-26764
- CVE-2022-26765
- CVE-2022-26706
- CVE-2022-26775
- CVE-2022-26708
- CVE-2022-32790
- CVE-2022-26776
- CVE-2022-23308
- CVE-2022-22673
- CVE-2022-26731
- CVE-2022-26766
- CVE-2022-26703
- CVE-2022-26704
- CVE-2022-26726
- CVE-2022-26700
- CVE-2022-26709
- CVE-2022-26710
- CVE-2022-26717
- CVE-2022-26716
- CVE-2022-26719
- CVE-2022-22677
- CVE-2022-26745
- CVE-2022-26760
- CVE-2015-4142
- CVE-2022-26762
Frequently Asked Questions
What is the vulnerability ID for this issue?
The vulnerability ID for this issue is CVE-2015-4142.
What is the affected software?
The affected software is Apple iOS and Apple iPadOS versions up to 15.5.
How was this issue addressed?
This issue was addressed with improved checks.
Where can I find more information about this issue?
You can find more information about this issue at the following link: [https://support.apple.com/en-us/HT213258](https://support.apple.com/en-us/HT213258).