Commit 4a4f1a5
committed
mac80211: check management frame header length
Due to pskb_may_pull() checking the skb length, all
non-management frames are checked on input whether
their 802.11 header is fully present. Also add that
check for management frames and remove a check that
is now duplicate. This prevents accessing skb data
beyond the frame end.
Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent 7dd111e commit 4a4f1a5
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1470 | 1470 | | |
1471 | 1471 | | |
1472 | 1472 | | |
1473 | | - | |
1474 | 1473 | | |
1475 | 1474 | | |
1476 | 1475 | | |
| |||
2915 | 2914 | | |
2916 | 2915 | | |
2917 | 2916 | | |
2918 | | - | |
2919 | | - | |
2920 | | - | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
2921 | 2924 | | |
| 2925 | + | |
2922 | 2926 | | |
2923 | 2927 | | |
2924 | 2928 | | |
| |||
0 commit comments