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.
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
| Attack Vector | LOCAL |
|---|---|
| Attack Complexity | HIGH |
| Privileges Required | LOW |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | NONE |
| Integrity Impact | NONE |
| Availability Impact | HIGH |
| Source | Type | Description |
|---|---|---|
| [email protected] | Primary |
en
CWE-362
|
| Vendor | Product | Version | Update | Type |
|---|---|---|---|---|
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36a717340> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36a715b80> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd38544a640> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36b434300> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36a717740> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36a716b00> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36a717380> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36a7157c0> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36a714ec0> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36a7149c0> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36b436b00> | Operating System |
| linux | linux_kernel | 7.1 | <built-in method update of dict object at 0x7fd36a717a80> | Operating System |
| linux | linux_kernel | 7.1 | <built-in method update of dict object at 0x7fd385449f40> | Operating System |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* |