In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: sdata can be NULL during AMPDU start
ieee80211txbasessionhandle_start() may get NULL for sdata when a deauthentication is ongoing.
Here a trace triggering the race with the hostapd test multiapfronthaulonap:
(gdb) list *drvampduaction+0x46 0x8b16 is in drvampduaction (net/mac80211/driver-ops.c:396). 391 int ret = -EOPNOTSUPP; 392 393 mightsleep(); 394 395 sdata = getbsssdata(sdata); 396 if (!checksdataindriver(sdata)) 397 return -EIO; 398 399 tracedrvampdu_action(local, sdata, params); 400
wlan0: moving STA 02:00:00:00:03:00 to state 3 wlan0: associated wlan0: deauthenticating from 02:00:00:00:03:00 by local choice (Reason: 3=DEAUTHLEAVING) wlan3.sta1: Open BA session requested for 02:00:00:00:00:00 tid 0 wlan3.sta1: dropped frame to 02:00:00:00:00:00 (unauthorized port) wlan0: moving STA 02:00:00:00:03:00 to state 2 wlan0: moving STA 02:00:00:00:03:00 to state 1 wlan0: Removed STA 02:00:00:00:03:00 wlan0: Destroyed STA 02:00:00:00:03:00 BUG: unable to handle page fault for address: fffffffffffffb48 PGD 11814067 P4D 11814067 PUD 11816067 PMD 0 Oops: 0000 [#1] PREEMPT SMP PTI CPU: 2 PID: 133397 Comm: kworker/u16:1 Tainted: G W 6.1.0-rc8-wt+ #59 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.0-20220807005459-localhost 04/01/2014 Workqueue: phy3 ieee80211basessionwork [mac80211] RIP: 0010:drvampduaction+0x46/0x280 [mac80211] Code: 53 48 89 f3 be 89 01 00 00 e8 d6 43 bf ef e8 21 46 81 f0 83 bb a0 1b 00 00 04 75 0e 48 8b 9b 28 0d 00 00 48 81 eb 10 0e 00 00 <8b> 93 58 09 00 00 f6 c2 20 0f 84 3b 01 00 00 8b 05 dd 1c 0f 00 85 RSP: 0018:ffffc900025ebd20 EFLAGS: 00010287 RAX: 0000000000000000 RBX: fffffffffffff1f0 RCX: ffff888102228240 RDX: 0000000080000000 RSI: ffffffff918c5de0 RDI: ffff888102228b40 RBP: ffffc900025ebd40 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888118c18ec0 R13: 0000000000000000 R14: ffffc900025ebd60 R15: ffff888018b7efb8 FS: 0000000000000000(0000) GS:ffff88817a600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffffffffb48 CR3: 0000000105228006 CR4: 0000000000170ee0 Call Trace: <TASK> ieee80211txbasessionhandlestart+0xd0/0x190 [mac80211] ieee80211basessionwork+0xff/0x2e0 [mac80211] processonework+0x29f/0x620 workerthread+0x4d/0x3d0 ? processonework+0x620/0x620 kthread+0xfb/0x120 ? kthreadcompleteandexit+0x20/0x20 retfrom_fork+0x22/0x30 </TASK>
{ "vanir_signatures": [ { "id": "CVE-2022-48875-0e9552f4", "deprecated": false, "digest": { "function_hash": "96956174880396059965361067332572535901", "length": 375.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c838df8461a601b20dc1b9fb1834d2aad8e2f949", "target": { "file": "net/mac80211/driver-ops.c", "function": "drv_ampdu_action" }, "signature_type": "Function", "signature_version": "v1" }, { "id": "CVE-2022-48875-132428d2", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "154702089043373806187718023500101044444", "271889934940841467585982639065044606111", "271316702546570546612058612068258548316", "38412760640045740107630544625449574993", "143273599280304646414101900309060313694", "167486589138442195130138605685597967753", "161856235830915493942432454956578156413", "20705621244994228086711787261009063331", "336743508276285014182206416872136528099", "232436102764749244644339445286269457986", "144256840798428545219319254014442827798" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c838df8461a601b20dc1b9fb1834d2aad8e2f949", "target": { "file": "net/mac80211/agg-tx.c" }, "signature_type": "Line", "signature_version": "v1" }, { "id": "CVE-2022-48875-3dc3c521", "deprecated": false, "digest": { "function_hash": "249074335455847408500220641680778475770", "length": 1098.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@187523fa7c2d4c780f775cb869216865c4a909ef", "target": { "file": "net/mac80211/agg-tx.c", "function": "ieee80211_tx_ba_session_handle_start" }, "signature_type": "Function", "signature_version": "v1" }, { "id": "CVE-2022-48875-59456d6c", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "154702089043373806187718023500101044444", "271889934940841467585982639065044606111", "271316702546570546612058612068258548316", "38412760640045740107630544625449574993", "143273599280304646414101900309060313694", "167486589138442195130138605685597967753", "161856235830915493942432454956578156413", "20705621244994228086711787261009063331", "336743508276285014182206416872136528099", "232436102764749244644339445286269457986", "144256840798428545219319254014442827798" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@69403bad97aa0162e3d7911b27e25abe774093df", "target": { "file": "net/mac80211/agg-tx.c" }, "signature_type": "Line", "signature_version": "v1" }, { "id": "CVE-2022-48875-67e76827", "deprecated": false, "digest": { "function_hash": "249074335455847408500220641680778475770", "length": 1098.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a12fd43bd175fa52c82f9740179d38c34ca1b62e", "target": { "file": "net/mac80211/agg-tx.c", "function": "ieee80211_tx_ba_session_handle_start" }, "signature_type": "Function", "signature_version": "v1" }, { "id": "CVE-2022-48875-701d8716", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "154702089043373806187718023500101044444", "271889934940841467585982639065044606111", "271316702546570546612058612068258548316", "38412760640045740107630544625449574993", "143273599280304646414101900309060313694", "167486589138442195130138605685597967753", "161856235830915493942432454956578156413", "20705621244994228086711787261009063331", "336743508276285014182206416872136528099", "232436102764749244644339445286269457986", "144256840798428545219319254014442827798" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@187523fa7c2d4c780f775cb869216865c4a909ef", "target": { "file": "net/mac80211/agg-tx.c" }, "signature_type": "Line", "signature_version": "v1" }, { "id": "CVE-2022-48875-8ee64777", "deprecated": false, "digest": { "function_hash": "96956174880396059965361067332572535901", "length": 375.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a12fd43bd175fa52c82f9740179d38c34ca1b62e", "target": { "file": "net/mac80211/driver-ops.c", "function": "drv_ampdu_action" }, "signature_type": "Function", "signature_version": "v1" }, { "id": "CVE-2022-48875-930fe38b", "deprecated": false, "digest": { "function_hash": "96956174880396059965361067332572535901", "length": 375.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@69403bad97aa0162e3d7911b27e25abe774093df", "target": { "file": "net/mac80211/driver-ops.c", "function": "drv_ampdu_action" }, "signature_type": "Function", "signature_version": "v1" }, { "id": "CVE-2022-48875-cdf34566", "deprecated": false, "digest": { "function_hash": "249074335455847408500220641680778475770", "length": 1098.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c838df8461a601b20dc1b9fb1834d2aad8e2f949", "target": { "file": "net/mac80211/agg-tx.c", "function": "ieee80211_tx_ba_session_handle_start" }, "signature_type": "Function", "signature_version": "v1" }, { "id": "CVE-2022-48875-dbd827bb", "deprecated": false, "digest": { "function_hash": "249074335455847408500220641680778475770", "length": 1098.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@69403bad97aa0162e3d7911b27e25abe774093df", "target": { "file": "net/mac80211/agg-tx.c", "function": "ieee80211_tx_ba_session_handle_start" }, "signature_type": "Function", "signature_version": "v1" }, { "id": "CVE-2022-48875-dd4070f0", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "154702089043373806187718023500101044444", "271889934940841467585982639065044606111", "271316702546570546612058612068258548316", "38412760640045740107630544625449574993", "143273599280304646414101900309060313694", "167486589138442195130138605685597967753", "161856235830915493942432454956578156413", "20705621244994228086711787261009063331", "336743508276285014182206416872136528099", "232436102764749244644339445286269457986", "144256840798428545219319254014442827798" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a12fd43bd175fa52c82f9740179d38c34ca1b62e", "target": { "file": "net/mac80211/agg-tx.c" }, "signature_type": "Line", "signature_version": "v1" }, { "id": "CVE-2022-48875-def522b6", "deprecated": false, "digest": { "function_hash": "96956174880396059965361067332572535901", "length": 375.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@187523fa7c2d4c780f775cb869216865c4a909ef", "target": { "file": "net/mac80211/driver-ops.c", "function": "drv_ampdu_action" }, "signature_type": "Function", "signature_version": "v1" } ] }