Bug 1278377 - (CVE-2015-5315) CVE-2015-5315 wpa_supplicant: EAP-pwd missing last fragment length validation
CVE-2015-5315 wpa_supplicant: EAP-pwd missing last fragment length validation
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20151110,reported=2...
: Security
Depends On:
Blocks: 1277868
  Show dependency treegraph
 
Reported: 2015-11-05 06:14 EST by Martin Prpič
Modified: 2015-11-11 06:50 EST (History)
1 user (show)

See Also:
Fixed In Version: hostapd 2.6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-05 06:25:01 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
EAP-pwd peer: Fix last fragment length validation (1.78 KB, text/plain)
2015-11-05 06:23 EST, Martin Prpič
no flags Details
EAP-pwd server: Fix last fragment length validation (1.78 KB, text/plain)
2015-11-05 06:23 EST, Martin Prpič
no flags Details

  None (edit)
Description Martin Prpič 2015-11-05 06:14:32 EST
The following flaw was reported in hostapd:

A vulnerability was found in EAP-pwd server and peer implementation used in hostapd and wpa_supplicant, respectively. When an incoming EAP-pwd message is fragmented, the remaining reassembly buffer length was not checked for the last fragment (but was checked for other fragments). This allowed a suitably constructed last fragment frame to try to add extra data that would go beyond the buffer. The length validation code in wpabuf_put_data() prevents an actual buffer write overflow from occurring, but this results in process termination.

For wpa_supplicant with EAP-pwd enabled in a network configuration profile, this could allow a denial of service attack by an attacker within radio range.

Vulnerable versions/configurations:

wpa_supplicant v1.0-v2.5 with CONFIG_EAP_PWD=y in the build configuration (wpa_supplicant/.config) and EAP-pwd enabled in a network profile at runtime.

Possible workarounds:

- Remove CONFIG_EAP_PWD=y from build configuration

- Disable EAP-pwd in runtime configuration

The related issue in hostapd is filed under CVE-2015-5314.

External References:

http://w1.fi/security/2015-7/
Comment 1 Martin Prpič 2015-11-05 06:23 EST
Created attachment 1090024 [details]
EAP-pwd peer: Fix last fragment length validation
Comment 2 Martin Prpič 2015-11-05 06:23 EST
Created attachment 1090025 [details]
EAP-pwd server: Fix last fragment length validation
Comment 3 Martin Prpič 2015-11-05 06:25:01 EST
Affected code does not exist in wpa_supplicant versions in Red Hat Enterprise Linux 6 and earlier. The wpa_supplicant packages in Red Hat Enterprise Linux 7 and Fedora are not built with the CONFIG_EAP_PWD configuration option and hence are also unaffected.

Statement:

Not vulnerable. This issue did not affect the versions of wpa_supplicant as shipped with Red Hat Enterprise Linux 5, 6, and 7.

Note You need to log in before you can comment on or make changes to this bug.