Lucene search

K
cvelistLinuxCVELIST:CVE-2020-36783
HistoryFeb 28, 2024 - 8:13 a.m.

CVE-2020-36783 i2c: img-scb: fix reference leak when pm_runtime_get_sync fails

2024-02-2808:13:04
Linux
www.cve.org
linux kernel
i2c
img-scb
reference leak
pm_runtime_get_sync
cve-2020-36783

6.2 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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

i2c: img-scb: fix reference leak when pm_runtime_get_sync fails

The PM reference count is not expected to be incremented on
return in functions img_i2c_xfer and img_i2c_init.

However, pm_runtime_get_sync will increment the PM reference
count even failed. Forgetting to putting operation will result
in a reference leak here.

Replace it with pm_runtime_resume_and_get to keep usage
counter balanced.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/i2c/busses/i2c-img-scb.c"
    ],
    "versions": [
      {
        "version": "93222bd9b966",
        "lessThan": "4734c4b1d957",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "93222bd9b966",
        "lessThan": "e80ae8bde412",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "93222bd9b966",
        "lessThan": "96c4a03658d6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "93222bd9b966",
        "lessThan": "7ee35cde1e81",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "93222bd9b966",
        "lessThan": "223125e37af8",
        "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/i2c/busses/i2c-img-scb.c"
    ],
    "versions": [
      {
        "version": "4.15",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.15",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.119",
        "lessThanOrEqual": "5.4.*",
        "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"
      }
    ]
  }
]

6.2 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%