Bug 1500302 (CVE-2017-13086)

Summary: CVE-2017-13086 wpa_supplicant: reinstallation of the Tunneled Direct-Link Setup (TDLS) PeerKey (TPK) key in the TDLS handshake
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact: Ken Benoit <kbenoit>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: bgalvani, blueowl, dcaratti, dcbw, linville, lkundrak, lrintel, negativo17, security-response-team, slawomir, sukulkar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A new exploitation technique called key reinstallation attacks (KRACK) affecting WPA2 has been discovered. A remote attacker within Wi-Fi range could exploit this attack to decrypt Wi-Fi traffic or possibly inject forged Wi-Fi packets by reinstalling a previously used Tunneled Direct-Link Setup (TDLS) Peerkey (TPK) key during a TDLS handshake.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-19 08:47:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1495527, 1495528, 1502588, 1502589    
Bug Blocks: 1491701    

Description Adam Mariš 2017-10-10 11:17:37 UTC
Wi-Fi Protected Access II (WPA2) handshake traffic can be manipulated to induce nonce and session key reuse, resulting in key reinstallation by a victim wireless access point (AP) or client. After establishing a man-in-the-middle position between an AP and client, an attacker can selectively manipulate the timing and transmission of messages in the WPA2 Tunneled Direct-Link Setup (TDLS) PeerKey (TPK) handshake, resulting in out-of-sequence reception or retransmission of messages.

An attacker within the wireless communications range of an affected AP and client may leverage these vulnerabilities to conduct attacks that are dependent on the data confidentiality protocol being used. Attacks may include arbitrary packet decryption and injection, TCP connection hijacking, HTTP content injection, or the replay of unicast, broadcast, and multicast frames.

Comment 1 Adam Mariš 2017-10-10 11:17:41 UTC

Name: CERT
Upstream: Mathy Vanhoef (University of Leuven)

Comment 3 Stefan Cornelius 2017-10-11 09:15:46 UTC
Initital support for TDLS came with 1.0. RHEL6 does not provide support for TDLS and should not be affected.

RHEL7 already has the patch to prevent TDLS TPK M2 retransmission: https://w1.fi/cgit/hostap/commit/?id=dabdef9e048b17b22b1c025ad592922eab30dda8
This only leaves TDLS TPK M3, where the attack is believed to be of rather theoretical nature, unless WEP is used. However, WEP is already broken and should not be used, so there's little to gain for an attacker.

Comment 6 Andrej Nemec 2017-10-16 09:42:56 UTC
Created hostapd tracking bugs for this issue:

Affects: fedora-all [bug 1502588]

Created wpa_supplicant tracking bugs for this issue:

Affects: fedora-all [bug 1502589]

Comment 8 Lubomir Rintel 2017-10-16 11:33:11 UTC
The upstream advisory suggests that this doesn't affect wpa_supplicant v. 2.6, that is shipped with Fedora 25 and newer (all supported Fedora versions) and RHEL 7.4, if I'm reading that correctly:

>  For the TDLS TPK M2 retransmission issue (CVE-2017-13086) with older
>  wpa_supplicant versions, consider updating to the latest version or
>  merge in a commit that is present in v2.6:
>  https://w1.fi/cgit/hostap/commit/?id=dabdef9e048b17b22b1c025ad592922eab30dda8
>  ('TDLS: Ignore incoming TDLS Setup Response retries')

Comment 10 errata-xmlrpc 2017-10-17 21:40:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:2907 https://access.redhat.com/errata/RHSA-2017:2907

Comment 11 Stefan Cornelius 2017-10-18 08:49:57 UTC

This issue did not affect the versions of wpa_supplicant as shipped with Red Hat Enterprise Linux 5 and 6, as it does not support TDLS.

This issue affects the versions of wpa_supplicant as shipped with Red Hat Enterprise Linux 7.