Skip to content

Commit 35d0d67

Browse files
committed
wifi: rtl8xxxu: add cancel_work_sync() for c2hcmd_work
jira LE-1907 cve CVE-2024-27052 Rebuild_History Non-Buildable kernel-5.14.0-427.31.1.el9_4 commit-author Martin Kaistra <martin.kaistra@linutronix.de> commit 1213acb The workqueue might still be running, when the driver is stopped. To avoid a use-after-free, call cancel_work_sync() in rtl8xxxu_stop(). Fixes: e542e66 ("rtl8xxxu: add bluetooth co-existence support for single antenna") Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de> Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://msgid.link/20240111163628.320697-2-martin.kaistra@linutronix.de (cherry picked from commit 1213acb) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent d2a1d95 commit 35d0d67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7304,6 +7304,7 @@ static void rtl8xxxu_stop(struct ieee80211_hw *hw)
73047304
if (priv->usb_interrupts)
73057305
rtl8xxxu_write32(priv, REG_USB_HIMR, 0);
73067306

7307+
cancel_work_sync(&priv->c2hcmd_work);
73077308
cancel_delayed_work_sync(&priv->ra_watchdog);
73087309

73097310
rtl8xxxu_free_rx_resources(priv);

0 commit comments

Comments
 (0)