Skip to contentSkip to conversation

CVE-2026-46187: wifi: rsi: fix kthread lifetime race between self-exit and external-stop

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

wifi: rsi: fix kthread lifetime race between self-exit and external-stop

RSI driver use both self-exit(kthread_complete_and_exit) and external-stop (kthread_stop) when killing a kthread. Generally, kthread_stop() is called first, and in this case, no particular issues occur.

However, in rare instances where kthread_complete_and_exit() is called first and then kthread_stop() is called, a UAF occurs because the kthread object, which has already exited and been freed, is accessed again.

Therefore, to prevent this with minimal modification, you must remove kthread_stop() and change the code to wait until the self-exit operation is completed.

The Linux kernel CVE team has assigned CVE-2026-46187 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.20 with commit 4c62764d0fc21a34ffc44eec1210038c3a2e4473 and fixed in 6.6.140 with commit 95fcb436586dc3c2983537d557ac05bbc6a027f3
	Issue introduced in 4.20 with commit 4c62764d0fc21a34ffc44eec1210038c3a2e4473 and fixed in 6.12.88 with commit 16d9f674c619838bdeae42abc0929c9c5477ea1f
	Issue introduced in 4.20 with commit 4c62764d0fc21a34ffc44eec1210038c3a2e4473 and fixed in 6.18.30 with commit 4f9a4ae8d2c198f01611ea376034c326ef43ab56
	Issue introduced in 4.20 with commit 4c62764d0fc21a34ffc44eec1210038c3a2e4473 and fixed in 7.0.7 with commit 4f4c9b13c485abd0a2d2c97f9db339d1dd8e147f
	Issue introduced in 4.20 with commit 4c62764d0fc21a34ffc44eec1210038c3a2e4473 and fixed in 7.1-rc3 with commit db57a1aa54ff68669781976e4edb045e09e2b65b
	Issue introduced in 3.18.139 with commit d8f70ad66032363e3edceee81a7be2aaccb2d7f5
	Issue introduced in 4.4.179 with commit ec759c0015fb7d4f5c7cb5711d2c8905724c7983
	Issue introduced in 4.9.170 with commit c8ed05b1d8520f40395916438da9b38ce937a896
	Issue introduced in 4.14.113 with commit ad78e2e057ab8d914a2b5e3e6acf29c3c8a428a3
	Issue introduced in 4.19.36 with commit de1fd69b6541ff61177114d63af7ea719c426cf0

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-46187

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/wireless/rsi/rsi_common.h

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/95fcb436586dc3c2983537d557ac05bbc6a027f3
	https://git.kernel.org/stable/c/16d9f674c619838bdeae42abc0929c9c5477ea1f
	https://git.kernel.org/stable/c/4f9a4ae8d2c198f01611ea376034c326ef43ab56
	https://git.kernel.org/stable/c/4f4c9b13c485abd0a2d2c97f9db339d1dd8e147f
	https://git.kernel.org/stable/c/db57a1aa54ff68669781976e4edb045e09e2b65b