CVE-2023-52660 media: rkisp1: Fix IRQ handling due to shared interrupts

Medium 5.5 Published Updated

A flaw in the Linux kernel's rkisp1 driver causes a system hang when interrupt handlers access powered-down ISP registers, leading to denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-52660?

CVE-2023-52660 is a medium-severity denial of service vulnerability in Linux kernel, published on 17 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Which versions are affected by CVE-2023-52660?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52660?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-52660 being exploited?

There is no known exploitation of CVE-2023-52660 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52660, DEBIAN-CVE-2023-52660, GHSA-qpfh-8wq3-6fx5, ROOT-OS-DEBIAN-11-CVE-2023-52660, ROOT-OS-UBUNTU-2204-CVE-2023-52660, UBUNTU-CVE-2023-52660.

Is CVE-2023-52660 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free