Re: [PATCH rtw-next v8 1/5] wifi: rtw89: avoid NULL vif dereference in rtw89_ops_tx()
From: Ping-Ke Shih
Date: Sat Nov 21 2026 - 23:15:13 EST
Enver Ikromov <owner@xxxxxxxxxxxxxx> wrote:
> Injecting a raw frame on a passive monitor interface while a station or
> AP interface is also up causes a kernel NULL pointer dereference,
> because mac80211 has no virtual monitor vif in concurrent mode and
> passes a NULL vif to the driver TX path.
>
> Check the vif pointer with vif_to_rtwvif_safe() and drop frames without
> a vif.
>
> Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Enver Ikromov <owner@xxxxxxxxxxxxxx>
> Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
5 patch(es) applied to rtw-next branch of rtw.git, thanks.
0202cb50fe9f wifi: rtw89: avoid NULL vif dereference in rtw89_ops_tx()
260247bfbc5b wifi: rtw89: handle negative rate index for injected frames
e07c9af7bbc8 wifi: rtw89: restore channel when leaving idle on non-chanctx devices
4175fc84dbe9 wifi: rtw89: avoid reading seq_ctrl on control frames
92608bb5f14f wifi: rtw89: honor ASSIGN_SEQ, retries, and NO_ACK for injected frames
---
https://github.com/pkshih/rtw.git