CVE-2023-52589 media: rkisp1: Fix IRQ disable race issue

Medium 4.7 Published Updated

A race condition in the rkisp1 driver can cause a board lockup when disabling interrupts during active frame capture.

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-52589?

CVE-2023-52589 is a medium-severity vulnerability in Linux kernel, published on 6 Mar 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 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.

Weakness: CWE-362

Which versions are affected by CVE-2023-52589?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52589?

Apply the vendor's patch.

Is CVE-2023-52589 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52589, DEBIAN-CVE-2023-52589, GHSA-92qh-fghq-p65v, ROOT-OS-DEBIAN-11-CVE-2023-52589, ROOT-OS-UBUNTU-2204-CVE-2023-52589, UBUNTU-CVE-2023-52589.

Is CVE-2023-52589 in your software?

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

Check your SBOMs for free