wifi: rsi: fix kthread lifetime race between self-exit and external-stop
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel db57a1aa54ff68669781976e4edb045e09e2b65b, Kernel 3.19, Kernel 4.15 and 17 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4c62764d0fc21a34ffc44eec1210038c3a2e4473 <db57a1aa54ff68669781976e4edb045e09e2b65b, >=3.18.139 <3.19, >=4.14.113 <4.15, >=4.19.36 <4.20, >=4.4.179 <4.5, >=4.9.170 <4.10, >=4c62764d0fc21a34ffc44eec1210038c3a2e4473 <16d9f674c619838bdeae42abc0929c9c5477ea1f, >=4c62764d0fc21a34ffc44eec1210038c3a2e4473 <4ac3095da22fc50e51ec10c3b8323c21ab3e441a, >=4c62764d0fc21a34ffc44eec1210038c3a2e4473 <4f4c9b13c485abd0a2d2c97f9db339d1dd8e147f, >=4c62764d0fc21a34ffc44eec1210038c3a2e4473 <4f697813162d5f9151726a6d2bee82bffe4b0256, >=4c62764d0fc21a34ffc44eec1210038c3a2e4473 <4f9a4ae8d2c198f01611ea376034c326ef43ab56, >=4c62764d0fc21a34ffc44eec1210038c3a2e4473 <95fcb436586dc3c2983537d557ac05bbc6a027f3, >=4c62764d0fc21a34ffc44eec1210038c3a2e4473 <9dfe8a4458a063c6433526bc59112a169eee1aa3, =4.20, =ad78e2e057ab8d914a2b5e3e6acf29c3c8a428a3, =c8ed05b1d8520f40395916438da9b38ce937a896, =d8f70ad66032363e3edceee81a7be2aaccb2d7f5, =de1fd69b6541ff61177114d63af7ea719c426cf0, =ec759c0015fb7d4f5c7cb5711d2c8905724c7983 | db57a1aa54ff68669781976e4edb045e09e2b65b, 3.19, 4.15, 4.20, 4.5, 4.10, 16d9f674c619838bdeae42abc0929c9c5477ea1f, 4ac3095da22fc50e51ec10c3b8323c21ab3e441a, 4f4c9b13c485abd0a2d2c97f9db339d1dd8e147f, 4f697813162d5f9151726a6d2bee82bffe4b0256, 4f9a4ae8d2c198f01611ea376034c326ef43ab56, 95fcb436586dc3c2983537d557ac05bbc6a027f3, 9dfe8a4458a063c6433526bc59112a169eee1aa3 |
| linux-kernel: Kernel | >=4.14.113 <4.15, >=4.19.36 <4.20, >=4.20.0 <5.10.258, >=4.4.179 <4.5, >=4.9.170 <4.10, >=5.11.0 <5.15.209, >=5.16.0 <6.1.175, >=6.13.0 <6.18.30, >=6.19.0 <7.0.7, >=6.2.0 <6.6.140, >=6.7.0 <6.12.88, >=3.18.139 <3.19 | 4.15, 4.20, 5.10.258, 4.5, 4.10, 5.15.209, 6.1.175, 6.18.30, 7.0.7, 6.6.140, 6.12.88, 3.19 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket