PCI: mediatek: Fix refcount leak in mtk_pcie_subsys_powerup()
Summary
GSD-2022-1003074: PCI: mediatek: Fix refcount leak in mtk_pcie_subsys_powerup(). Affects Kernel versions >= 87e8657ba99cac87b84c7f8ead91b44d88345504, < 4cef4237d6c37257cb6ddc397723e9c0dded0efe. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The vulnerability affects the Kernel package in the Linux ecosystem. The Kernel is the core component of the Linux operating system, responsible for managing system resources and providing an interface for applications to interact with the hardware. The specific vulnerability, identified as GSD-2022-1003074, is related to a refcount leak in the mtk_pcie_subsys_powerup() function in the mediatek PCI driver. This vulnerability can potentially lead to resource leaks and impact system stability and performance.
Vulnerability Detail
The vulnerability arises from a refcount leak in the mtk_pcie_subsys_powerup() function of the mediatek PCI driver. When the function is called, it fails to properly handle reference counting, resulting in a leak. This can lead to resource exhaustion and potential system instability. Attackers may be able to exploit this vulnerability to cause denial-of-service conditions or execute arbitrary code with elevated privileges. The vulnerability was introduced in version v5.15 of the Linux Kernel and has been fixed in version v5.17.14.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
If updating the Kernel package is not immediately feasible, a possible workaround is to disable the mediatek PCI driver or remove the affected hardware from the system. This can mitigate the risk of exploitation, but it may also result in the loss of functionality provided by the driver or the affected hardware.
Conclusion
The vulnerability in the mediatek PCI driver of the Kernel package can lead to resource leaks, system instability, and potential privilege escalation. It is crucial to update the Kernel to version v5.17.14 or later to mitigate the risk. If immediate update is not possible, disabling the mediatek PCI driver or removing the affected hardware can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to resource leaks, system instability, and potential privilege escalation. Attackers may be able to cause denial-of-service conditions or execute arbitrary code with elevated privileges.
You can use tools like Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert Playground allows you to analyze your application's manifest file, such as package-lock.json, without requiring access to the code or installation.
Yes, the vulnerability has been fixed in version v5.17.14 of the Linux Kernel. It is recommended to update to this version or a later one to mitigate the risk.
A possible temporary measure is to disable the mediatek PCI driver or remove the affected hardware from the system. However, this may result in the loss of functionality provided by the driver or the affected hardware.
You can refer to the vulnerability details in the GSD database: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1003xxx/GSD-2022-1003074.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.