pinctrl: nomadik: Add missing of_node_put() in nmk_pinctrl_probe
Summary
GSD-2022-1002347: pinctrl: nomadik: Add missing of_node_put() in nmk_pinctrl_probe. Affects Kernel versions >= 32e67eee670e1254ee5ab41e2f454680acb9c17c, < 0067ba448f1c29ca06e5aee00d8506889ed1f9d0. 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 pinctrl package in the Linux Kernel is responsible for managing pin control and GPIO (General Purpose Input/Output) functionality. It provides an interface for configuring and controlling pins on various hardware platforms. The nomadik driver is a specific driver within the pinctrl package that is used for handling pin control on Nomadik platforms. This vulnerability affects the nomadik driver and can potentially lead to memory leaks and resource exhaustion.
Vulnerability Detail
The vulnerability in the nomadik driver is due to a missing of_node_put() function call in the nmk_pinctrl_probe() function. This function is responsible for probing the Nomadik pinctrl device and initializing its resources. However, it fails to release the reference to the device tree node obtained from the device tree, leading to a memory leak. An attacker could potentially exploit this vulnerability to exhaust system memory and cause a denial-of-service condition. The vulnerability was introduced in version v3.9 of the Linux Kernel and has been fixed in version v4.19.238.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, developers should add the missing of_node_put() function call in the nmk_pinctrl_probe() function. This will ensure that the reference to the device tree node is properly released after use, preventing memory leaks. The fix has been implemented in the Linux Kernel version v4.19.238, so users should update to this version or later to mitigate the vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. The recommended solution is to apply the fix by updating to the fixed version of the Linux Kernel.
Conclusion
The pinctrl: nomadik vulnerability in the Linux Kernel's nomadik driver can lead to memory leaks and resource exhaustion. It is crucial to update to the fixed version of the Linux Kernel (v4.19.238 or later) to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The pinctrl package is responsible for managing pin control and GPIO functionality in the Linux Kernel. It provides an interface for configuring and controlling pins on various hardware platforms.
The nomadik driver is a specific driver within the pinctrl package that is used for handling pin control on Nomadik platforms.
This vulnerability can potentially lead to memory leaks and resource exhaustion, which could result in a denial-of-service condition.
To fix this vulnerability, update to the fixed version of the Linux Kernel (v4.19.238 or later) that includes the necessary fix.
No specific workaround is mentioned for this vulnerability. The recommended solution is to update to the fixed version of the Linux Kernel.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.