Lucene search

K
cvelistLinuxCVELIST:CVE-2023-52660
HistoryMay 17, 2024 - 12:08 p.m.

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

2024-05-1712:08:39
Linux
www.cve.org
cve-2023-52660
media
rkisp1
irq handling
shared interrupts
linux kernel
vulnerability
interrupt handler
driver
soc
isp
board hang

6.4 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c",
      "drivers/media/platform/rockchip/rkisp1/rkisp1-common.h",
      "drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c",
      "drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c",
      "drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "abd34206f396",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "b39b4d207d4f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "edcf92bc66d8",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "ffb635bb398f",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c",
      "drivers/media/platform/rockchip/rkisp1/rkisp1-common.h",
      "drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c",
      "drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c",
      "drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c"
    ],
    "versions": [
      {
        "version": "6.1.83",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.23",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.11",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.4 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%

Related for CVELIST:CVE-2023-52660