CVE-2015-4142: Buffer Overflow

Published May 13, 2015
·
Updated

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

Kostya Kortchinsky(Google Security Team)

Affected Software

33 affected componentsFixes available
debian/wpa
2:2.7+git20190128+0c1e29f-6+deb10u32:2.9.0-212:2.10-122:2.10-15
w1.fi Wpa Supplicant=0.7.0
w1.fi Wpa Supplicant=0.7.1
w1.fi Wpa Supplicant=0.7.2
w1.fi Wpa Supplicant=0.7.3
w1.fi Wpa Supplicant=1.0
w1.fi Wpa Supplicant=1.1
w1.fi Wpa Supplicant=2.0
w1.fi Wpa Supplicant=2.1
w1.fi Wpa Supplicant=2.2
w1.fi Wpa Supplicant=2.3
w1.fi Wpa Supplicant=2.4
redhat Enterprise Linux Desktop=6.0
redhat Enterprise Linux Hpc Node=6.0
redhat Enterprise Linux Server=6.0
redhat Enterprise Linux Workstation=6.0
w1.fi hostapd=0.7.0
w1.fi hostapd=0.7.1
w1.fi hostapd=0.7.2
w1.fi hostapd=0.7.3
w1.fi hostapd=1.0
w1.fi hostapd=1.1
w1.fi hostapd=2.0
w1.fi hostapd=2.1
w1.fi hostapd=2.2
w1.fi hostapd=2.3
w1.fi hostapd=2.4
openSUSE openSUSE=13.1
openSUSE openSUSE=13.2
Apple iOS<15.5
15.5
Apple iPadOS<15.5
15.5
redhat/wpa_supplicant<2.5
2.5
redhat/hostapd<2.5
2.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/wpa to 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
  2. Upgrade

    Upgrade Apple iOS and iPadOS to a version that resolves this vulnerability.

    Fixed in 15.5
  3. Upgrade

    Upgrade Apple iOS, iPadOS, and macOS to a version that resolves this vulnerability.

    Fixed in 15.5
  4. Upgrade

    Upgrade redhat/wpa_supplicant to a version that resolves this vulnerability.

    Fixed in 2.5
  5. Upgrade

    Upgrade redhat/hostapd to a version that resolves this vulnerability.

    Fixed in 2.5
  6. Configuration

    Do not enable AP mode or P2P GO operation at runtime.

    wpa_supplicant AP mode and P2P GO operation = disabled

Event History

May 13, 2015
Data Sourced
via Red Hat·12:37 PM
DescriptionSeverityAffected Software
May 31, 2015
Data Sourced
08:42 PM
SeverityAffected Software
Jun 15, 2015
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
03:59 PM
DescriptionWeakness
Data Sourced
via NVD·03:59 PM
DescriptionSeverityWeaknessAffected Software
Dec 22, 2023
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2015-4142.

2

What is the affected software?

The affected software is Apple iOS and Apple iPadOS versions up to 15.5.

3

How was this issue addressed?

This issue was addressed with improved checks.

4

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).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203