diff options
author | 2014-11-03 13:57:46 +0100 | |
---|---|---|
committer | 2014-11-03 14:28:50 +0100 | |
commit | b8fff407a180286aa683d543d878d98d9fc57b13 (patch) | |
tree | 2e509ae3f6f16d1e1da195f5a4a65e77c4c7133f /net/mac80211/aes_ccm.c | |
parent | mac80211: properly flush delayed scan work on interface removal (diff) | |
download | linux-b8fff407a180286aa683d543d878d98d9fc57b13.tar.gz linux-b8fff407a180286aa683d543d878d98d9fc57b13.tar.bz2 linux-b8fff407a180286aa683d543d878d98d9fc57b13.zip |
mac80211: fix use-after-free in defragmentation
Upon receiving the last fragment, all but the first fragment
are freed, but the multicast check for statistics at the end
of the function refers to the current skb (the last fragment)
causing a use-after-free bug.
Since multicast frames cannot be fragmented and we check for
this early in the function, just modify that check to also
do the accounting to fix the issue.
Cc: stable@vger.kernel.org
Reported-by: Yosef Khyal <yosefx.khyal@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/aes_ccm.c')
0 files changed, 0 insertions, 0 deletions