Vulnerability in Kernel package: bus: qcom: Put child node before return
Summary
GSD-2021-1000435: bus: qcom: Put child node before return. Affects Kernel versions >= 335a127548081322bd2b294d715418648912f20c, < 3a76ec28824c01b57aa1f0927841d75e4f167cb8. 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 package is a crucial component of the Linux operating system, responsible for managing the system's core functionality. It provides an interface between the hardware and software layers, allowing applications to interact with the underlying system resources. The bus subsystem within the Kernel package handles the communication between different devices and their drivers. One specific module, 'qcom', is designed for Qualcomm devices. This vulnerability affects the 'qcom' module within the bus subsystem.
Vulnerability Detail
The vulnerability in the 'qcom' module arises from a missing 'put' operation on a child node before returning from a function. This oversight can lead to a reference count leak, potentially causing resource exhaustion and other memory-related issues. An attacker may be able to exploit this vulnerability to trigger a denial-of-service condition or execute arbitrary code with elevated privileges. The vulnerability was introduced in version v4.9 of the Linux Kernel and has been fixed in version v5.4.119.
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 manually apply the fix introduced in commit 3a76ec28824c01b57aa1f0927841d75e4f167cb8. This involves modifying the affected code in the 'qcom' module to ensure the 'put' operation on the child node is performed before returning from the function. Here is an example of the modified code:
// Original code
...
return ret;
// Modified code
...
put(child_node);
return ret;
Please note that applying manual modifications to the Kernel code should be done with caution and is not recommended unless absolutely necessary.
Conclusion
In conclusion, a vulnerability has been identified in the 'qcom' module of the Kernel package, which can potentially lead to a denial-of-service condition or arbitrary code execution. It is crucial to update the Linux Kernel package to version v5.4.119 or later to mitigate this vulnerability. If immediate updating is not possible, manual application of the fix or consulting with a security professional may be considered. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can potentially lead to a denial-of-service condition or enable an attacker to execute arbitrary code with elevated privileges.
You can use the Vulert 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 in real-time to identify any open-source vulnerabilities, including this one.
Yes, a patch for this vulnerability has been released in version v5.4.119 of the Linux Kernel. It is recommended to update to this version or a later one to fix the vulnerability.
Yes, if updating the Kernel package is not immediately feasible, you can manually apply the fix introduced in commit 3a76ec28824c01b57aa1f0927841d75e4f167cb8. However, it is important to note that manual modifications to the Kernel code should be done with caution and are not recommended unless absolutely necessary.
You can find more information about this vulnerability, including its technical details and the fix, in the official Linux Kernel repository. The vulnerability is tracked under ID GSD-2021-1000435.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.