Vulnerability in Kernel: bus: qcom: Put child node before return
Summary
GSD-2021-1000485: bus: qcom: Put child node before return. Affects Kernel versions >= 335a127548081322bd2b294d715418648912f20c, < a6191e91c10e50bd51db65a00e03d02b6b0cf8c4. 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 Kernel is a crucial component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionalities and services to ensure the proper functioning of the system. The bus subsystem in the Kernel handles the communication between different devices and their drivers. One specific bus driver, qcom, is responsible for managing Qualcomm devices. However, a vulnerability has been identified in the qcom bus driver that could potentially lead to security issues.
Vulnerability Detail
The vulnerability in the qcom bus driver arises from a missing 'put' operation on a child node before returning from a function. This oversight can result in a reference count leak, leading to a use-after-free vulnerability. An attacker could potentially exploit this vulnerability to execute arbitrary code or escalate privileges on a vulnerable system. The vulnerability was introduced in version v4.9 of the Linux Kernel by commit 335a127548081322bd2b294d715418648912f20c and has been fixed in version v4.9.269 by commit a6191e91c10e50bd51db65a00e03d02b6b0cf8c4.
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
As a temporary workaround, users can disable the qcom bus driver if it is not essential for their system's operation. This can be achieved by blacklisting the driver module or modifying the Kernel configuration to exclude the qcom bus driver during compilation. However, it is important to note that this workaround may result in the loss of functionality for Qualcomm devices.
Conclusion
In conclusion, a vulnerability has been identified in the qcom bus driver of the Linux Kernel, which could potentially allow an attacker to execute arbitrary code or escalate privileges. It is crucial to update the Kernel to version v4.9.269 or later to mitigate this vulnerability. Alternatively, users can disable the qcom bus driver as a temporary workaround, although this may result in the loss of functionality for Qualcomm devices. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially allow an attacker to execute arbitrary code or escalate privileges on a vulnerable system.
You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.
At the time of this report, there is no known public exploit for this vulnerability. However, it is always recommended to apply security patches promptly to mitigate any potential risks.
While updating the Kernel is the recommended solution, you can temporarily mitigate the risk by disabling the qcom bus driver if it is not essential for your system. However, this may result in the loss of functionality for Qualcomm devices.
You can find more information about the fix for this vulnerability in the Linux Kernel repository. The fix was implemented in commit a6191e91c10e50bd51db65a00e03d02b6b0cf8c4.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.