Lucene search

K
vulnrichmentLinuxVULNRICHMENT: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
github.com
4
linux kernel
irq handling
soc
driver
shared interrupts
vulnerability

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "1da177e4c3f4",
        "lessThan": "abd34206f396",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1da177e4c3f4",
        "lessThan": "b39b4d207d4f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1da177e4c3f4",
        "lessThan": "edcf92bc66d8",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1da177e4c3f4",
        "lessThan": "ffb635bb398f",
        "versionType": "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"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "unaffected",
        "version": "6.1.83",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.23",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.7.11",
        "versionType": "custom",
        "lessThanOrEqual": "6.7.*"
      },
      {
        "status": "unaffected",
        "version": "6.8",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "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"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

Related for VULNRICHMENT:CVE-2023-52660