diff options
| -rw-r--r-- | 0002-mac80211-fix-regression-where-EAPOL-frames-were-sent.patch | 53 | ||||
| -rw-r--r-- | PKGBUILD | 9 | 
2 files changed, 3 insertions, 59 deletions
diff --git a/0002-mac80211-fix-regression-where-EAPOL-frames-were-sent.patch b/0002-mac80211-fix-regression-where-EAPOL-frames-were-sent.patch deleted file mode 100644 index d4c5e1a..0000000 --- a/0002-mac80211-fix-regression-where-EAPOL-frames-were-sent.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 5fbf98ceb5b2218ec764dd0d187953393732a5ef Mon Sep 17 00:00:00 2001 -From: Mathy Vanhoef <Mathy.Vanhoef@kuleuven.be> -Date: Sat, 17 Oct 2020 23:08:18 +0400 -Subject: mac80211: fix regression where EAPOL frames were sent in plaintext - -I've managed to reproduce the issue, or at least a related issue. Can -you try the draft patch below and see if that fixes it? - -When sending EAPOL frames via NL80211 they are treated as injected -frames in mac80211. Due to commit 1df2bdba528b ("mac80211: never drop -injected frames even if normally not allowed") these injected frames -were not assigned a sta context in the function ieee80211_tx_dequeue, -causing certain wireless network cards to always send EAPOL frames in -plaintext. This may cause compatibility issues with some clients or -APs, which for instance can cause the group key handshake to fail and -in turn would cause the station to get disconnected. - -This commit fixes this regression by assigning a sta context in -ieee80211_tx_dequeue to injected frames as well. - -Note that sending EAPOL frames in plaintext is not a security issue -since they contain their own encryption and authentication protection. - -Fixes: 1df2bdba528b ("mac80211: never drop injected frames even if normally not allowed") ---- - net/mac80211/tx.c | 7 ++++--- - 1 file changed, 4 insertions(+), 3 deletions(-) - -diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c -index dca01d7e6e3e..2a0725b548f6 100644 ---- a/net/mac80211/tx.c -+++ b/net/mac80211/tx.c -@@ -3613,13 +3613,14 @@ begin: - 	tx.skb = skb; - 	tx.sdata = vif_to_sdata(info->control.vif); -  --	if (txq->sta && !(info->flags & IEEE80211_TX_CTL_INJECTED)) { -+	if (txq->sta) { - 		tx.sta = container_of(txq->sta, struct sta_info, sta); - 		/* - 		 * Drop unicast frames to unauthorised stations unless they are --		 * EAPOL frames from the local station. -+		 * injected frames or EAPOL frames from the local station. - 		 */ --		if (unlikely(ieee80211_is_data(hdr->frame_control) && -+		if (unlikely(!(info->flags & IEEE80211_TX_CTL_INJECTED) && -+			     ieee80211_is_data(hdr->frame_control) && - 			     !ieee80211_vif_is_mesh(&tx.sdata->vif) && - 			     tx.sdata->vif.type != NL80211_IFTYPE_OCB && - 			     !is_multicast_ether_addr(hdr->addr1) && ---  -cgit v1.2.3-1-gf6bb5 - @@ -20,7 +20,7 @@ _pkgbase=linux-hardened  pkgbase=linux-libre-hardened  _supver=5  _majver=9 -_minver=6 +_minver=8  _hardenedver=a  _gccpatchver='20200615'  _gccpatchger='10.1' @@ -49,7 +49,6 @@ _gnupkgver=${_pkgver}-gnu  source=(    https://linux-libre.fsfla.org/pub/linux-libre/releases/${_gnumajver}/linux-libre-${_gnumajver}.tar.xz{,.sign}    https://github.com/anthraxx/${_pkgbase}/releases/download/${pkgver}/${_pkgbase}-${pkgver}.patch{,.sig} -  0002-mac80211-fix-regression-where-EAPOL-frames-were-sent.patch    kernel_gcc_patch-${_gccpatchver}.tar.gz::https://github.com/graysky2/kernel_gcc_patch/archive/${_gccpatchver}.tar.gz    ath9k-regdom-hack.patch    raid6-default-algo.patch @@ -65,15 +64,14 @@ validpgpkeys=(  )  b2sums=('30280a22cba46ea899ad6dcd8093630f51684a111759e87db1bf857398cb861c37581734a8ac8b2b083ea477429e47e8b47b0d5a1cb648b9a9f17ec4abf91e17'          'SKIP' -        '915e5e972a510de4b668be09430eb374d23b862c5589f8019cbfe904f5b7e62db31292e5c702fe3942655feae56b796a80e934cb553524b6c0351fe84a0580c3' +        'f236b16c9e97c4a11041ed7ebb5c171b9a2ac4ba5afe63c490c550a54df93089bacea8c828f2653a8e6e7b248d13a07f3256a96191a5d21ddce5e95d5877a4ce'          'SKIP' -        '3006fa726027b57c421c959c4e6c2230cfa871df7a234d4b2061ed1db4784d0c296d90785a2c48f5c059f6e15ad58007773376440054ce6e60a00fc448b939b3'          'c8d0697f99fe6105815217b8ec059d8f587415ea8dd2b88a65e1087feedf697341a64cd56810fde9e7aeada79125fc8235faccc7e7b06492c099e27a8abbe99c'          'b6ef77035611139fa9a6d5b8d30570e2781bb4da483bb569884b0bd0129b62e0b82a5a6776fefe43fee801c70d39de1ea4d4c177f7cedd5ac135e3c64f7b895a'          'fde132f3705d908e6f2147c78a2193289916d72304ca5efa2229d79fc3e57a857314ce94e71425caef2f7f7b6cf87f05ef86335dc8bd4be78e7035afe608005a'          '4f2536f2324cc1497500a58a6772b3589094b1d73dc72c85333bd05179fc21b8dde6d9fac8d049514ca8eb57ce72ffb73f17c64e89847f3d86e6c7e13760bc68'          'b4e1377d97ad7e8144d6e55b6d43731e3271a5aec65b65ca6d81026a95f15f549b9303fb3c6f492099ca691e3f65f4cf7f0c3aa742df03b396d7f6d81813aa95' -        '3871811ccd7528cefaedaa19b799bb0116994282f290684d92ac3f0d9cf6daea42accf6d194ee29554118d68c601237724744a207e83d2c8750ebe8153335276' +        'ede1484e12ae87f4ddf2f1fc84f14d804e5f077f34453097fee5a8c5ca91d7fd497aa84fe1e239b9b481583c83b6d988a8f8400b948567e249d032753d941bb1'          'SKIP')  export KBUILD_BUILD_HOST=arc4linux @@ -92,7 +90,6 @@ prepare() {    # Hotfixes    echo "Applying hotfixes" -  patch -p1 -i ../0002-mac80211-fix-regression-where-EAPOL-frames-were-sent.patch    patch -p1 -i ../sphinx-workaround.patch  | 
