Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2024-38603
HistoryJun 19, 2024 - 2:15 p.m.

CVE-2024-38603

2024-06-1914:15:20
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
21
linux kernel
drivers/perf
hisi
hns3
memory leak
irq vector
devm_add_action_or_reset

6.5 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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

drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()

pci_alloc_irq_vectors() allocates an irq vector. When devm_add_action()
fails, the irq vector is not freed, which leads to a memory leak.

Replace the devm_add_action with devm_add_action_or_reset to ensure
the irq vector can be destroyed when it fails.

Affected configurations

Vulners
Node
linuxlinux_kernelRange6.06.1.93
OR
linuxlinux_kernelRange6.2.06.6.33
OR
linuxlinux_kernelRange6.7.06.8.12
OR
linuxlinux_kernelRange6.9.06.9.3
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/perf/hisilicon/hns3_pmu.c"
    ],
    "versions": [
      {
        "version": "66637ab137b4",
        "lessThan": "1491a01ef5a9",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "66637ab137b4",
        "lessThan": "a7678a16c25b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "66637ab137b4",
        "lessThan": "2fcffaaf529d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "66637ab137b4",
        "lessThan": "b1e86f1ef8fa",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "66637ab137b4",
        "lessThan": "582c1aeee0a9",
        "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/perf/hisilicon/hns3_pmu.c"
    ],
    "versions": [
      {
        "version": "6.0",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.0",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.93",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.33",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.12",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.3",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10-rc1",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.5 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%