diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-11-03 13:57:46 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-03 14:28:50 +0100 |
commit | b8fff407a180286aa683d543d878d98d9fc57b13 (patch) | |
tree | 2e509ae3f6f16d1e1da195f5a4a65e77c4c7133f /net/mac80211/aes_cmac.c | |
parent | 46238845bd609a5c0fbe076e1b82b4c5b33360b2 (diff) | |
download | blackbird-op-linux-b8fff407a180286aa683d543d878d98d9fc57b13.tar.gz blackbird-op-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_cmac.c')
0 files changed, 0 insertions, 0 deletions