]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: accept key reinstall without changing anything
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Sep 2017 12:54:54 +0000 (14:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 16 Oct 2017 11:02:03 +0000 (13:02 +0200)
commitd00eb66b86da2e886fa4807ae38cb6dfb1a7cdd6
tree65428a5a3961cae26521908dc9cdece90eb4cca0
parent026007596e6fd99ae96c1312dc490ab38e5c42f3
mac80211: accept key reinstall without changing anything

When a key is reinstalled we can reset the replay counters
etc. which can lead to nonce reuse and/or replay detection
being impossible, breaking security properties, as described
in the "KRACK attacks".

In particular, CVE-2017-13080 applies to GTK rekeying that
happened in firmware while the host is in D3, with the second
part of the attack being done after the host wakes up. In
this case, the wpa_supplicant mitigation isn't sufficient
since wpa_supplicant doesn't know the GTK material.

In case this happens, simply silently accept the new key
coming from userspace but don't take any action on it since
it's the same key; this keeps the PN replay counters intact.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c