CVE-2015-8041
Description
Integer overflow in NDEF record parser in hostapd and wpa_supplicant before 2.5 allows denial of service via crafted NFC NDEF records.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Integer overflow in NDEF record parser in hostapd and wpa_supplicant before 2.5 allows denial of service via crafted NFC NDEF records.
Vulnerability
Multiple integer overflows exist in the NDEF record parser of hostapd and wpa_supplicant before version 2.5 [2]. The 32-bit record->total_length value can wrap around if the payload length field is crafted to be near 2^32, bypassing bounds checks and leading to out-of-bounds reads or infinite loops [2]. This affects code used when NFC Tags or NFC connection handover trigger WPS or P2P operations.
Exploitation
An attacker must provide a malformed NDEF record via an NFC Tag or NFC connection handover, and the device's NFC stack must not perform its own validation before passing the record to hostapd/wpa_supplicant [2]. The attacker sets a large payload length field value (longer form) to trigger the integer overflow. Successful exploitation requires no authentication, but physical proximity via NFC is needed.
Impact
A successful attack causes denial of service: process termination due to buffer read overflow, or an infinite loop in ndef_parse_records() leading to resource exhaustion [2]. In some cases, the process attempts to allocate close to 2^32 bytes of heap memory, which would also likely crash the process [2].
Mitigation
Fixed in hostapd and wpa_supplicant version 2.5, released July 2015 [2]. If an NFC stack performs proper validation of NDEF record payload lengths, the vulnerability might not be reachable in practice [2]. No other workarounds are documented; users should upgrade to the patched versions.
AI Insight generated on May 23, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
29- osv-coords25 versionspkg:rpm/opensuse/wpa_supplicant&distro=openSUSE%20Leap%2015.1pkg:rpm/opensuse/wpa_supplicant&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/wpa_supplicant&distro=openSUSE%20Tumbleweedpkg:rpm/suse/wpa_supplicant&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1pkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP1pkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2pkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1pkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/wpa_supplicant&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/wpa_supplicant&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/wpa_supplicant&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/wpa_supplicant&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/wpa_supplicant&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 2.9-lp151.5.10.1+ 24 more
- (no CPE)range: < 2.9-lp151.5.10.1
- (no CPE)range: < 2.9-lp152.8.3.1
- (no CPE)range: < 2.9-13.4
- (no CPE)range: < 2.9-15.22.1
- (no CPE)range: < 2.2-14.2
- (no CPE)range: < 2.9-4.20.1
- (no CPE)range: < 2.9-4.20.1
- (no CPE)range: < 2.9-4.20.1
- (no CPE)range: < 2.9-4.20.1
- (no CPE)range: < 2.2-14.2
- (no CPE)range: < 2.9-15.22.1
- (no CPE)range: < 2.9-15.22.1
- (no CPE)range: < 2.9-15.22.1
- (no CPE)range: < 2.9-15.22.1
- (no CPE)range: < 2.9-23.3.1
- (no CPE)range: < 2.9-4.20.1
- (no CPE)range: < 2.2-14.2
- (no CPE)range: < 2.9-15.22.1
- (no CPE)range: < 2.9-15.22.1
- (no CPE)range: < 2.9-23.3.1
- (no CPE)range: < 2.9-4.20.1
- (no CPE)range: < 2.9-15.22.1
- (no CPE)range: < 2.9-15.22.1
- (no CPE)range: < 2.9-15.22.1
- (no CPE)range: < 2.9-15.22.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
6- lists.opensuse.org/opensuse-updates/2015-11/msg00037.htmlnvd
- lists.opensuse.org/opensuse-updates/2015-11/msg00041.htmlnvd
- w1.fi/security/2015-5/incomplete-wps-and-p2p-nfc-ndef-record-payload-length-validation.txtnvd
- www.debian.org/security/2015/dsa-3397nvd
- www.openwall.com/lists/oss-security/2015/11/02/5nvd
- www.securityfocus.com/bid/75604nvd
News mentions
0No linked articles in our index yet.