i2c: stm32f7: fix reference leak when pm_runtime_get_sync fails
Published Feb 28, 2024
5.5
MEDIUMCVSS 3.1
EPSS 0.22%
Description
The PM reference count is not expected to be incremented on return in these stm32f7_i2c_xx serious functions.
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.
Affected products
-
Affected
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
-
Affected
- 5.6
Unaffected
- ≥ 0, < 5.6
- ≥ 5.10.37, ≤ 5.10.*
- ≥ 5.11.21, ≤ 5.11.*
- ≥ 5.12.4, ≤ 5.12.*
- 5.13
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
- ≥ 5.6 · < 5.10.37
- ≥ 5.11 · < 5.11.21
- ≥ 5.12 · < 5.12.4
No data.
Red Hat Enterprise Linux 6
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel-rt
Out of support scope
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (10)
- https://access.redhat.com/security/cve/CVE-2020-36779 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2266942 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-24220 Advisory
- https://git.kernel.org/stable/c/2c662660ce2bd3b09dae21a9a9ac9395e1e6c00b Patch
- https://git.kernel.org/stable/c/c323b270a52a26aa8038a4d1fd9a850904a41166 Patch
- https://git.kernel.org/stable/c/c7ea772c9fcf711ed566814b92eecaffc0e2bfd0 Patch
- https://git.kernel.org/stable/c/d791b90f5c5e5aa8ccf9e33386c16bd2b7e333a4 Patch
- https://lore.kernel.org/linux-cve-announce/2024022819-CVE-2020-36779-9f1e@gregkh/T/#u
- https://nvd.nist.gov/vuln/detail/CVE-2020-36779
- https://www.cve.org/CVERecord?id=CVE-2020-36779
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
GitHub
No data