Files
twx-linux/net/mac80211
Johannes Berg 9b73f43fce mac80211: initialize fast-xmit 'info' later
commit 35f432a03e upstream.

In ieee80211_xmit_fast(), 'info' is initialized to point to the skb
that's passed in, but that skb may later be replaced by a clone (if
it was shared), leading to an invalid pointer.

This can lead to use-after-free and also later crashes since the
real SKB's info->hw_queue doesn't get initialized properly.

Fix this by assigning info only later, when it's needed, after the
skb replacement (may have) happened.

Reported-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-12 11:22:43 +01:00
..
…
…
…
…
…
…
…
…
2016-04-20 15:42:10 +09:00
…
…
…
…
…
2015-10-14 18:40:26 +02:00
…
…
…
…
2015-11-03 10:42:47 +01:00
…
…
…
2015-12-15 13:13:59 +01:00
…
…
…
…
2015-10-14 18:40:26 +02:00
…