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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
4c62764d0fc21a34ffc44eec1210038c3a2e4473 to < 4ac3095da22fc50e51ec10c3b8323c21ab3e441aaffected4c62764d0fc21a34ffc44eec1210038c3a2e4473 to < 9dfe8a4458a063c6433526bc59112a169eee1aa3affected4c62764d0fc21a34ffc44eec1210038c3a2e4473 to < 4f697813162d5f9151726a6d2bee82bffe4b0256affected4c62764d0fc21a34ffc44eec1210038c3a2e4473 to < 95fcb436586dc3c2983537d557ac05bbc6a027f3affected4c62764d0fc21a34ffc44eec1210038c3a2e4473 to < 16d9f674c619838bdeae42abc0929c9c5477ea1faffected4c62764d0fc21a34ffc44eec1210038c3a2e4473 to < 4f9a4ae8d2c198f01611ea376034c326ef43ab56affected4c62764d0fc21a34ffc44eec1210038c3a2e4473 to < 4f4c9b13c485abd0a2d2c97f9db339d1dd8e147faffected4c62764d0fc21a34ffc44eec1210038c3a2e4473 to < db57a1aa54ff68669781976e4edb045e09e2b65baffectedd8f70ad66032363e3edceee81a7be2aaccb2d7f5affectedec759c0015fb7d4f5c7cb5711d2c8905724c7983affectedc8ed05b1d8520f40395916438da9b38ce937a896affectedad78e2e057ab8d914a2b5e3e6acf29c3c8a428a3affectedde1fd69b6541ff61177114d63af7ea719c426cf0affected3.18.139 to < 3.19affected4.4.179 to < 4.5affected4.9.170 to < 4.10affected4.14.113 to < 4.15affected4.19.36 to < 4.20affected
Linux Linux
Default version status: affected
4.20affected0 to < 4.20unaffected5.10.258 to ≤ 5.10.*unaffected5.15.209 to ≤ 5.15.*unaffected6.1.175 to ≤ 6.1.*unaffected6.6.140 to ≤ 6.6.*unaffected6.12.88 to ≤ 6.12.*unaffected6.18.30 to ≤ 6.18.*unaffected7.0.7 to ≤ 7.0.*unaffected7.1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/4ac3095da22fc50e51ec10c3b8323c21ab3e441a ↗
- https://git.kernel.org/stable/c/9dfe8a4458a063c6433526bc59112a169eee1aa3 ↗
- https://git.kernel.org/stable/c/4f697813162d5f9151726a6d2bee82bffe4b0256 ↗
- 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 ↗
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html ↗