Lucene search

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

CVE-2020-36778 i2c: xiic: fix reference leak when pm_runtime_get_sync fails

2024-02-2808:13:01
Linux
www.cve.org
linux kernel
vulnerability
cve-2020-36778
i2c
xiic
reference leak
pm_runtime_get_sync
pm_runtime_resume_and_get

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: xiic: fix reference leak when pm_runtime_get_sync fails

The PM reference count is not expected to be incremented on
return in xiic_xfer and xiic_i2c_remove.

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-xiic.c"
    ],
    "versions": [
      {
        "version": "10b17004a74c",
        "lessThan": "c977426db644",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "10b17004a74c",
        "lessThan": "e2ba996577ea",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "10b17004a74c",
        "lessThan": "a42ac16e6573",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "10b17004a74c",
        "lessThan": "a85c5c7a3aa8",
        "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-xiic.c"
    ],
    "versions": [
      {
        "version": "5.6",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.6",
        "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%

Related for CVELIST:CVE-2020-36778