CVE-2020-36778
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2020-36778 affects the Linux kernel's i2c-xiic driver. The vulnerability was discovered when a reference leak was identified in the PM (Power Management) functionality when pmruntimeget_sync fails. This issue was reported by Hulk Robot and fixed by Qinglang Miao in December 2020 (Kernel Git).

Technical details

The vulnerability stems from an implementation flaw in the Linux kernel's i2c-xiic driver where the PM reference count would be incorrectly incremented even when pmruntimegetsync failed. This occurred in both xiicxfer and xiici2cremove functions. The missing corresponding 'put' operation resulted in a reference leak. The fix involved replacing pmruntimegetsync with pmruntimeresumeand_get to maintain proper usage counter balance (Kernel Git).

Impact

The reference leak in the PM functionality could lead to resource exhaustion over time, potentially affecting system stability and performance for systems using the affected i2c-xiic driver.

Mitigation and workarounds

The issue was fixed by replacing pmruntimegetsync with pmruntimeresumeand_get in the affected code paths. The fix was implemented in the Linux kernel through commit a85c5c7a3aa8041777ff691400b4046e56149fd3 and backported to various stable kernel versions (Kernel Git).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management