media: rkisp1: Fix IRQ handling due to shared interrupts
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: rkisp1: Fix IRQ handling due to shared interrupts
The driver requests the interrupts as IRQF_SHARED, so the interrupt handlers can be called at any time. If such a call happens while the ISP is powered down, the SoC will hang as the driver tries to access the ISP registers.
This can be reproduced even without the platform sharing the IRQ line: Enable CONFIG_DEBUG_SHIRQ and unload the driver, and the board will hang.
Fix this by adding a new field, 'irqs_enabled', which is used to bail out from the interrupt handler when the ISP is not operational.
From the CVE record · Linux
The Linux kernel's rkisp1 driver can access ISP registers when a shared interrupt handler runs while the ISP is powered down, causing the SoC to hang. This can also be reproduced by enabling CONFIG_DEBUG_SHIRQ and unloading the driver, even when the IRQ line is not shared. The input does not specify authentication or network requirements.
Engineers running Linux kernels with the rkisp1 driver should check their kernel version; affected versions are not specified.