Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2024-36965
HistoryJun 08, 2024 - 1:15 p.m.

CVE-2024-36965

2024-06-0813:15:57
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
22
linux kernel
vulnerability
ipi buffer
l2tcm
firmware
scp
devicetree
r/w operations

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.3%

In the Linux kernel, the following vulnerability has been resolved:

remoteproc: mediatek: Make sure IPI buffer fits in L2TCM

The IPI buffer location is read from the firmware that we load to the
System Companion Processor, and it’s not granted that both the SRAM
(L2TCM) size that is defined in the devicetree node is large enough
for that, and while this is especially true for multi-core SCP, it’s
still useful to check on single-core variants as well.

Failing to perform this check may make this driver perform R/W
operations out of the L2TCM boundary, resulting (at best) in a
kernel panic.

To fix that, check that the IPI buffer fits, otherwise return a
failure and refuse to boot the relevant SCP core (or the SCP at
all, if this is single core).

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.115.15.160
OR
linuxlinux_kernelRange5.16.06.1.92
OR
linuxlinux_kernelRange6.2.06.6.32
OR
linuxlinux_kernelRange6.7.06.8.11
OR
linuxlinux_kernelRange6.9.06.9.2
OR
linuxlinux_kernelRange6.10.06.10-rc1

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/remoteproc/mtk_scp.c"
    ],
    "versions": [
      {
        "version": "3efa0ea743b7",
        "lessThan": "00548ac6b144",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3efa0ea743b7",
        "lessThan": "1d9e2de24533",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3efa0ea743b7",
        "lessThan": "26c6d7dc8c6a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3efa0ea743b7",
        "lessThan": "838b49e211d5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3efa0ea743b7",
        "lessThan": "36c79eb48455",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3efa0ea743b7",
        "lessThan": "331f91d86f71",
        "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/remoteproc/mtk_scp.c"
    ],
    "versions": [
      {
        "version": "5.11",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.11",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.160",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.92",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.32",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.11",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.2",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10-rc1",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.3%