CVE-2020-36782 (GCVE-0-2020-36782)
Vulnerability from cvelistv5 – Published: 2024-02-28 08:13 – Updated: 2025-05-04 06:58
VLAI?
Title
i2c: imx-lpi2c: fix reference leak when pm_runtime_get_sync fails
Summary
In the Linux kernel, the following vulnerability has been resolved:
i2c: imx-lpi2c: fix reference leak when pm_runtime_get_sync fails
The PM reference count is not expected to be incremented on
return in lpi2c_imx_master_enable.
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.
Severity ?
No CVSS data available.
Assigner
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Linux | Linux |
Affected:
13d6eb20fc79a1e606307256dad4098375539a09 , < 815859cb1d2302e74f11bf6894bceace9ca9eb4a
(git)
Affected: 13d6eb20fc79a1e606307256dad4098375539a09 , < cc49d206414240483bb93ffa3d80243e6a776916 (git) Affected: 13d6eb20fc79a1e606307256dad4098375539a09 , < bb300acc867e937edc2a6898e92b21f88e4e4e66 (git) Affected: 13d6eb20fc79a1e606307256dad4098375539a09 , < b100650d80cd2292f6c152f5f2943b5944b3e8ce (git) Affected: 13d6eb20fc79a1e606307256dad4098375539a09 , < 278e5bbdb9a94fa063c0f9bcde2479d0b8042462 (git) |
||
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2020-36782",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-02-28T20:38:48.650662Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-06-04T17:12:27.144Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-04T17:37:07.089Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/815859cb1d2302e74f11bf6894bceace9ca9eb4a"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/cc49d206414240483bb93ffa3d80243e6a776916"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/bb300acc867e937edc2a6898e92b21f88e4e4e66"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/b100650d80cd2292f6c152f5f2943b5944b3e8ce"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/278e5bbdb9a94fa063c0f9bcde2479d0b8042462"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/i2c/busses/i2c-imx-lpi2c.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "815859cb1d2302e74f11bf6894bceace9ca9eb4a",
"status": "affected",
"version": "13d6eb20fc79a1e606307256dad4098375539a09",
"versionType": "git"
},
{
"lessThan": "cc49d206414240483bb93ffa3d80243e6a776916",
"status": "affected",
"version": "13d6eb20fc79a1e606307256dad4098375539a09",
"versionType": "git"
},
{
"lessThan": "bb300acc867e937edc2a6898e92b21f88e4e4e66",
"status": "affected",
"version": "13d6eb20fc79a1e606307256dad4098375539a09",
"versionType": "git"
},
{
"lessThan": "b100650d80cd2292f6c152f5f2943b5944b3e8ce",
"status": "affected",
"version": "13d6eb20fc79a1e606307256dad4098375539a09",
"versionType": "git"
},
{
"lessThan": "278e5bbdb9a94fa063c0f9bcde2479d0b8042462",
"status": "affected",
"version": "13d6eb20fc79a1e606307256dad4098375539a09",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/i2c/busses/i2c-imx-lpi2c.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.16"
},
{
"lessThan": "4.16",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"version": "5.4.119",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.37",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.11.*",
"status": "unaffected",
"version": "5.11.21",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.12.*",
"status": "unaffected",
"version": "5.12.4",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "5.13",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.4.119",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.37",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.11.21",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.12.4",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.13",
"versionStartIncluding": "4.16",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: imx-lpi2c: fix reference leak when pm_runtime_get_sync fails\n\nThe PM reference count is not expected to be incremented on\nreturn in lpi2c_imx_master_enable.\n\nHowever, pm_runtime_get_sync will increment the PM reference\ncount even failed. Forgetting to putting operation will result\nin a reference leak here.\n\nReplace it with pm_runtime_resume_and_get to keep usage\ncounter balanced."
}
],
"providerMetadata": {
"dateUpdated": "2025-05-04T06:58:50.452Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/815859cb1d2302e74f11bf6894bceace9ca9eb4a"
},
{
"url": "https://git.kernel.org/stable/c/cc49d206414240483bb93ffa3d80243e6a776916"
},
{
"url": "https://git.kernel.org/stable/c/bb300acc867e937edc2a6898e92b21f88e4e4e66"
},
{
"url": "https://git.kernel.org/stable/c/b100650d80cd2292f6c152f5f2943b5944b3e8ce"
},
{
"url": "https://git.kernel.org/stable/c/278e5bbdb9a94fa063c0f9bcde2479d0b8042462"
}
],
"title": "i2c: imx-lpi2c: fix reference leak when pm_runtime_get_sync fails",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2020-36782",
"datePublished": "2024-02-28T08:13:04.110Z",
"dateReserved": "2024-02-26T17:07:27.435Z",
"dateUpdated": "2025-05-04T06:58:50.452Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/815859cb1d2302e74f11bf6894bceace9ca9eb4a\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/cc49d206414240483bb93ffa3d80243e6a776916\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/bb300acc867e937edc2a6898e92b21f88e4e4e66\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/b100650d80cd2292f6c152f5f2943b5944b3e8ce\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/278e5bbdb9a94fa063c0f9bcde2479d0b8042462\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-04T17:37:07.089Z\"}}, {\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2020-36782\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-02-28T20:38:48.650662Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-23T19:01:13.847Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"i2c: imx-lpi2c: fix reference leak when pm_runtime_get_sync fails\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"13d6eb20fc79a1e606307256dad4098375539a09\", \"lessThan\": \"815859cb1d2302e74f11bf6894bceace9ca9eb4a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"13d6eb20fc79a1e606307256dad4098375539a09\", \"lessThan\": \"cc49d206414240483bb93ffa3d80243e6a776916\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"13d6eb20fc79a1e606307256dad4098375539a09\", \"lessThan\": \"bb300acc867e937edc2a6898e92b21f88e4e4e66\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"13d6eb20fc79a1e606307256dad4098375539a09\", \"lessThan\": \"b100650d80cd2292f6c152f5f2943b5944b3e8ce\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"13d6eb20fc79a1e606307256dad4098375539a09\", \"lessThan\": \"278e5bbdb9a94fa063c0f9bcde2479d0b8042462\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/i2c/busses/i2c-imx-lpi2c.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.16\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.16\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.4.119\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.37\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.11.21\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.11.*\"}, {\"status\": \"unaffected\", \"version\": \"5.12.4\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.12.*\"}, {\"status\": \"unaffected\", \"version\": \"5.13\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/i2c/busses/i2c-imx-lpi2c.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/815859cb1d2302e74f11bf6894bceace9ca9eb4a\"}, {\"url\": \"https://git.kernel.org/stable/c/cc49d206414240483bb93ffa3d80243e6a776916\"}, {\"url\": \"https://git.kernel.org/stable/c/bb300acc867e937edc2a6898e92b21f88e4e4e66\"}, {\"url\": \"https://git.kernel.org/stable/c/b100650d80cd2292f6c152f5f2943b5944b3e8ce\"}, {\"url\": \"https://git.kernel.org/stable/c/278e5bbdb9a94fa063c0f9bcde2479d0b8042462\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ni2c: imx-lpi2c: fix reference leak when pm_runtime_get_sync fails\\n\\nThe PM reference count is not expected to be incremented on\\nreturn in lpi2c_imx_master_enable.\\n\\nHowever, pm_runtime_get_sync will increment the PM reference\\ncount even failed. Forgetting to putting operation will result\\nin a reference leak here.\\n\\nReplace it with pm_runtime_resume_and_get to keep usage\\ncounter balanced.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.119\", \"versionStartIncluding\": \"4.16\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.37\", \"versionStartIncluding\": \"4.16\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.11.21\", \"versionStartIncluding\": \"4.16\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.12.4\", \"versionStartIncluding\": \"4.16\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.13\", \"versionStartIncluding\": \"4.16\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T06:58:50.452Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2020-36782\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T06:58:50.452Z\", \"dateReserved\": \"2024-02-26T17:07:27.435Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-02-28T08:13:04.110Z\", \"assignerShortName\": \"Linux\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…