mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

* mac80211: backport security fixes
This mainly affects scanning and beacon parsing, especially with MBSSID enabled
Fixes: CVE-2022-41674
Fixes: CVE-2022-42719
Fixes: CVE-2022-42720
Fixes: CVE-2022-42721
Fixes: CVE-2022-42722
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 26f400210d6b3780fcc0deb89b9741837df9c8b8)
* mac80211: refresh patches
355-wifi-cfg80211-fix-BSS-refcounting-bugs.patch - 5a52384a51
Co-authored-by: Felix Fietkau <nbd@nbd.name>
Co-authored-by: 1054009064 <1054009064@users.noreply.github.com>
15 lines
367 B
Diff
15 lines
367 B
Diff
--- a/net/wireless/util.c
|
|
+++ b/net/wireless/util.c
|
|
@@ -2149,7 +2149,11 @@ void cfg80211_send_layer2_update(struct
|
|
skb->dev = dev;
|
|
skb->protocol = eth_type_trans(skb, dev);
|
|
memset(skb->cb, 0, sizeof(skb->cb));
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
|
|
netif_rx_ni(skb);
|
|
+#else
|
|
+ netif_rx(skb);
|
|
+#endif
|
|
}
|
|
EXPORT_SYMBOL(cfg80211_send_layer2_update);
|
|
|