CVE-2020-36784

i2c: cadence: fix reference leak when pm_runtime_get_sync fails

State
Published
Severity
Not scored
Published
Feb 28, 2024
Updated
May 11, 2026
Reserved
Feb 26, 2024

Read the record on cve.org

Description

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

i2c: cadence: fix reference leak when pm_runtime_get_sync fails

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

However, pm_runtime_get_sync will increment pm usage counter 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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7fa32329ca03148fb2c07b4ef3247b8fc0488d6a to before 30410519328c94367e561fd878e5f0d3a0303585Affected
  • 7fa32329ca03148fb2c07b4ef3247b8fc0488d6a to before d57ff04e0ed6f3be1682ae861ead33f879225e07Affected
  • 7fa32329ca03148fb2c07b4ef3247b8fc0488d6a to before a45fc41beed8e0fe31864619c34aa00797fb60c1Affected
  • 7fa32329ca03148fb2c07b4ef3247b8fc0488d6a to before 23ceb8462dc6f4b4decdb5536a7e5fc477cdf0b6Affected
LinuxLinux
  • 4.5Affected
  • before 4.5Not affected
  • 5.10.37 through 5.10.*Not affected
  • 5.11.21 through 5.11.*Not affected
  • 5.12.4 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.