Lucene search

K
cveLinuxCVE-2024-26975
HistoryMay 01, 2024 - 6:15 a.m.

CVE-2024-26975

2024-05-0106:15:14
Linux
web.nvd.nist.gov
1461
linux kernel
vulnerability
powercap
intel_rapl
null pointer
rapl framework
mmio

AI Score

6.6

Confidence

Low

EPSS

0

Percentile

15.5%

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

powercap: intel_rapl: Fix a NULL pointer dereference

A NULL pointer dereference is triggered when probing the MMIO RAPL
driver on platforms with CPU ID not listed in intel_rapl_common CPU
model list.

This is because the intel_rapl_common module still probes on such
platforms even if ‘defaults_msr’ is not set after commit 1488ac990ac8
(“powercap: intel_rapl: Allow probing without CPUID match”). Thus the
MMIO RAPL rp->priv->defaults is NULL when registering to RAPL framework.

Fix the problem by adding sanity check to ensure rp->priv->rapl_defaults
is always valid.

Affected configurations

Vulners
Node
linuxlinux_kernelRange6.56.6.24
OR
linuxlinux_kernelRange6.7.06.7.12
OR
linuxlinux_kernelRange6.8.06.8.3
OR
linuxlinux_kernelRange6.9.0
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/powercap/intel_rapl_common.c"
    ],
    "versions": [
      {
        "version": "1488ac990ac8",
        "lessThan": "0641908b906a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1488ac990ac8",
        "lessThan": "9b254feb2499",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1488ac990ac8",
        "lessThan": "2f73cf2ae5e0",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1488ac990ac8",
        "lessThan": "2d1f5006ff95",
        "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/powercap/intel_rapl_common.c"
    ],
    "versions": [
      {
        "version": "6.5",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.5",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.24",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.12",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.3",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.6

Confidence

Low

EPSS

0

Percentile

15.5%