diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-11-03 13:57:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-21 09:23:11 -0800 |
commit | f420adb8ce47dcd72e53541974fd3eedd1448f55 (patch) | |
tree | 9275bbf68c5c550b8ba27c07f556076f99d42839 /Documentation | |
parent | c6b3055441e548ba1ee761c982c5e60c88cfb486 (diff) |
mac80211: fix use-after-free in defragmentation
commit b8fff407a180286aa683d543d878d98d9fc57b13 upstream.
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.
Reported-by: Yosef Khyal <yosefx.khyal@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions