CVE-2023-52589

media: rkisp1: Fix IRQ disable race issue

State
Published
Severity
Not scored
Published
Mar 6, 2024
Updated
May 11, 2026
Reserved
Mar 2, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 25cb42af9ffabffec499e9e69e2fd3797774ce5b to before bf808f58681cab64c81cd814551814fd34e540feAffected
  • 25cb42af9ffabffec499e9e69e2fd3797774ce5b to before fab483438342984f2a315fe13c882a80f0f7e545Affected
  • 25cb42af9ffabffec499e9e69e2fd3797774ce5b to before 7bb1a2822aa2c2de4e09bf7c56dd93bd532f1fa7Affected
  • 25cb42af9ffabffec499e9e69e2fd3797774ce5b to before 870565f063a58576e8a4529f122cac4325c6b395Affected
LinuxLinux
  • 5.6Affected
  • before 5.6Not affected
  • 6.1.77 through 6.1.*Not affected
  • 6.6.16 through 6.6.*Not affected
  • 6.7.4 through 6.7.*Not affected
  • 6.8 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.