aboutsummaryrefslogtreecommitdiff
path: root/net/mac80211/aes_ccm.c
diff options
context:
space:
mode:
authorGravatar Johannes Berg <johannes.berg@intel.com> 2014-11-03 13:57:46 +0100
committerGravatar Johannes Berg <johannes.berg@intel.com> 2014-11-03 14:28:50 +0100
commitb8fff407a180286aa683d543d878d98d9fc57b13 (patch)
tree2e509ae3f6f16d1e1da195f5a4a65e77c4c7133f /net/mac80211/aes_ccm.c
parentmac80211: properly flush delayed scan work on interface removal (diff)
downloadlinux-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