CVE-2023-52589: media: rkisp1: Fix IRQ disable race issue
In the Linux kernel, the following vulnerability has been resolved:
media: rkisp1: Fix IRQ disable race issue
In rkisp1ispstop() and rkisp1csidisable() 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
Event History
Frequently Asked Questions
What is the severity of CVE-2023-52589?
CVE-2023-52589 has been classified as a moderate severity vulnerability.
How do I fix CVE-2023-52589?
To fix CVE-2023-52589, update the Linux kernel to versions 6.1.123-1, 6.1.119-1, 6.12.11-1, or 6.12.12-1.
What systems are affected by CVE-2023-52589?
CVE-2023-52589 affects several versions of the Linux kernel, specifically those up to version 5.10.226-1.
What causes CVE-2023-52589?
CVE-2023-52589 is caused by an IRQ disable race condition in the rkisp1 driver within the Linux kernel.
Is CVE-2023-52589 being actively exploited?
As of now, there are no public reports indicating that CVE-2023-52589 is being actively exploited.