4.7medium
media: rkisp1: Fix IRQ disable race issue
- Severity
- 4.7medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.17% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: media: rkisp1: Fix IRQ disable race issue In rkisp1_isp_stop() and rkisp1_csi_disable() the driver masks the interrupts and then apparently assumes that the interrupt handler won't be running, and proceeds in the stop procedure. This is not the case, as the interrupt handler can already be running, which would lead to the ISP being disabled while the interrupt handler handling a captured frame. This brings up two issues: 1) the ISP could be powered off while the interrupt handler is still running and accessing registers, leading to board lockup, and 2) the interrupt handler code and the code that disables the streaming might do things that conflict. It is not clear to me if 2) causes a real issue, but 1) can be seen with a suitable delay (or printk in my case) in the interrupt handler, leading to board lockup.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 25cb42af9ffabffec499e9e69e2fd3797774ce5b before bf808f58681cab64c81cd814551814fd34e540fe, from 25cb42af9ffabffec499e9e69e2fd3797774ce5b before fab483438342984f2a315fe13c882a80f0f7e545, from 25cb42af9ffabffec499e9e69e2fd3797774ce5b before 7bb1a2822aa2c2de4e09bf7c56dd93bd532f1fa7, from 25cb42af9ffabffec499e9e69e2fd3797774ce5b before 870565f063a58576e8a4529f122cac4325c6b395, 5.6 Not affected: before 5.6, from 6.1.77 up to 6.1.*, from 6.6.16 up to 6.6.*, from 6.7.4 up to 6.7.*, from 6.8 up to * | CVE List |
| linux linux_kernel | before 6.1.77, from 6.2 before 6.6.16, from 6.7 before 6.7.4 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: media: rkisp1: Fix IRQ disable race issue In rkisp1_isp_stop() and rkisp1_csi_disable() the driver masks the interrupts and then apparently assumes that the interrupt handler won't be running, and proceeds in the stop procedure. This is not the case, as the interrupt handler can already be running, which would lead to the ISP being disabled while the interrupt handler handling a captured frame. This brings up two issues: 1) the ISP could be powered off while the interrupt handler is still running and accessing registers, leading to board lockup, and 2) the interrupt handler code and the code that disables the streaming might do things that conflict. It is not clear to me if 2) causes a real issue, but 1) can be seen with a suitable delay (or printk in my case) in the interrupt handler, leading to board lockup.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: medios: rkisp1: Solucionar el problema de ejecución de desactivación de IRQ En rkisp1_isp_stop() y rkisp1_csi_disable() el controlador enmascara las interrupciones y aparentemente asume que el controlador de interrupciones no se ejecutará y continúa en el procedimiento de parada. Este no es el caso, ya que el controlador de interrupciones puede estar ejecutándose, lo que llevaría a que el ISP se deshabilite mientras el controlador de interrupciones maneja una trama capturada. Esto plantea dos problemas: 1) el ISP podría apagarse mientras el controlador de interrupciones aún está ejecutándose y accediendo a los registros, lo que provoca el bloqueo de la placa, y 2) el código del controlador de interrupciones y el código que deshabilita la transmisión pueden hacer cosas que entren en conflicto. No me queda claro si 2) causa un problema real, pero 1) se puede ver con un retraso adecuado (o printk en mi caso) en el controlador de interrupciones, lo que provoca el bloqueo de la placa.
References
| https://git.kernel.org/stable/c/bf808f58681cab64c81cd814551814fd34e540fe | mailing-list, patch | |
| https://git.kernel.org/stable/c/fab483438342984f2a315fe13c882a80f0f7e545 | mailing-list, patch | |
| https://git.kernel.org/stable/c/7bb1a2822aa2c2de4e09bf7c56dd93bd532f1fa7 | mailing-list, patch | |
| https://git.kernel.org/stable/c/870565f063a58576e8a4529f122cac4325c6b395 | mailing-list, patch | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52589 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-52589 changed 2026-06-17 | Public domain |