summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorJiangshan Yi <yijiangshan@kylinos.cn>2026-08-15 20:10:43 +0800
committerJohannes Berg <johannes.berg@intel.com>2026-09-15 11:52:56 +0200
commit1eeca1d5e0920fbdad6449768fd2d4364e714180 (patch)
tree292c97d02b6da107103c4f46562427fbe67da82e /include/net
parent621d90169cef6c8da5b6134db5c0c4e23cdd09ce (diff)
downloadlinux-1eeca1d5e0920fbdad6449768fd2d4364e714180.tar.gz
linux-1eeca1d5e0920fbdad6449768fd2d4364e714180.zip
wifi: brcmsmac: fix UAF in brcms_free_timer()
brcms_free_timer() calls brcms_del_timer() which uses the non-synchronous cancel_delayed_work() to cancel the timer's underlying delayed work. If the work callback (_brcms_timer) is already running, cancel_delayed_work() returns false without waiting, and brcms_free_timer() proceeds to kfree(t) while the callback still accesses t through container_of(). Add an explicit cancel_delayed_work_sync() after brcms_del_timer() to guarantee that any in-flight callback has completed before the timer structure is freed. Fixes: 5b435de0d786 ("net: wireless: add brcm80211 drivers") Cc: stable@vger.kernel.org Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn> Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com> Link: https://patch.msgid.link/20260815121043.938414-1-yijiangshan@kylinos.cn Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions