Null Return Check Vulnerability in soc: qcom: rpmpd
Summary
GSD-2022-1001267: soc: qcom: rpmpd: Check for null return of devm_kcalloc. Affects Kernel versions >= bbe3a66c3f5a65fb3d702351bac2a6033944d389, < 31b5124d742969ea8bf7a1360596f548ca23e770. 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 soc: qcom: rpmpd package is a component of the Linux Kernel. It is responsible for managing the Qualcomm RPM power domain. The RPM power domain is a power management subsystem found in Qualcomm Snapdragon processors. The rpmpd driver in the Linux Kernel provides an interface for controlling and configuring the RPM power domain. This vulnerability affects versions of the Linux Kernel from v5.1 to v5.17.1.
Vulnerability Detail
The vulnerability in soc: qcom: rpmpd arises from a missing null return check in the devm_kcalloc function. This function is used to allocate memory for an array of objects with the specified size. If the allocation fails, the function returns NULL. However, the vulnerable code does not check for this NULL return value, leading to potential use-after-free or NULL pointer dereference vulnerabilities. An attacker could exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition on a vulnerable system.
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
There is no known workaround for this vulnerability. It is crucial to update to the fixed version of the Linux Kernel as soon as possible.
Conclusion
The null return check vulnerability in soc: qcom: rpmpd can lead to serious security issues, including arbitrary code execution and denial-of-service. It is crucial to update the Linux Kernel to version v5.17.2 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability could allow an attacker to execute arbitrary code or cause a denial-of-service condition on a vulnerable system.
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 to the playground, and it will analyze the dependencies and alert you if any vulnerabilities are found.
At the time of this report, there are no known public exploits for this vulnerability. However, it is still important to update to the fixed version of the Linux Kernel to mitigate the risk.
Yes, this vulnerability can be exploited remotely if the affected system is exposed to the internet and the necessary conditions for exploitation are met.
For more details about this vulnerability, you can refer to the vulnerability ID GSD-2022-1001267 in the GSD database maintained by the Cloud Security Alliance. The source link for this vulnerability is https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001267.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.