Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47043
HistoryFeb 28, 2024 - 8:13 a.m.

CVE-2021-47043 media: venus: core: Fix some resource leaks in the error path of 'venus_probe()'

2024-02-2808:13:48
Linux
www.cve.org
7
linux kernel
vulnerability resolved
media
venus
core
resource leaks
venus_probe
of_icc_get
devm_of_icc_get
remove function
icc_put.

AI Score

6.6

Confidence

Low

EPSS

0

Percentile

15.5%

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

media: venus: core: Fix some resource leaks in the error path of ‘venus_probe()’

If an error occurs after a successful ‘of_icc_get()’ call, it must be
undone.

Use ‘devm_of_icc_get()’ instead of ‘of_icc_get()’ to avoid the leak.
Update the remove function accordingly and axe the now unneeded
‘icc_put()’ calls.

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/qcom/venus/core.c"
    ],
    "versions": [
      {
        "version": "32f0a6ddc8c9",
        "lessThan": "00b68a747834",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "32f0a6ddc8c9",
        "lessThan": "940d01eceb3a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "32f0a6ddc8c9",
        "lessThan": "711acdf0228d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "32f0a6ddc8c9",
        "lessThan": "5a465c5391a8",
        "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/qcom/venus/core.c"
    ],
    "versions": [
      {
        "version": "5.5",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.5",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.37",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.11.21",
        "lessThanOrEqual": "5.11.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.12.4",
        "lessThanOrEqual": "5.12.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.13",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.6

Confidence

Low

EPSS

0

Percentile

15.5%