ASoC Codecs wcd934x: Missing of_node_put() in wcd934x_codec_parse_data
Summary
GSD-2022-1001558: ASoC: codecs: wcd934x: Add missing of_node_put() in wcd934x_codec_parse_data. Affects Kernel versions >= a61f3b4f476eceb25274161e5a53a8d18e42610b, < f3793eeb7b94a5eeed6f5c7a44bce403c6681a12. 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 ASoC (Audio System on Chip) framework in the Linux Kernel provides support for audio drivers and codecs. The wcd934x codec driver is responsible for managing the audio codec on Qualcomm Snapdragon SoCs. It allows audio data to be processed and converted between digital and analog formats. However, a vulnerability has been identified in the wcd934x_codec_parse_data function, which can lead to resource leaks and potential security issues.
Vulnerability Detail
The wcd934x_codec_parse_data function in the wcd934x codec driver fails to release a reference to a device tree node obtained through of_get_child_by_name. This can result in a resource leak, as the reference count for the node is not properly decremented. An attacker may be able to exploit this vulnerability to exhaust system resources, leading to a denial of service condition. Additionally, if the leaked node is used in subsequent operations, it may result in undefined behavior or other security issues.
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 recommended to apply the fix provided in the Linux Kernel update.
Conclusion
The wcd934x_codec_parse_data function in the wcd934x codec driver is vulnerable to resource leaks and potential security issues. It is recommended to apply the fix provided in the Linux Kernel update to mitigate these risks. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can lead to resource leaks and potential security issues. It may allow an attacker to exhaust system resources, leading to a denial of service condition. Additionally, if the leaked node is used in subsequent operations, it may result in undefined behavior or other security issues.
You can use the Vulert Playground (https://vulert.com/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.
There is no known exploit for this vulnerability at the moment. However, it is important to apply the fix provided in the Linux Kernel update to mitigate any potential risks.
The only known mitigation for this vulnerability is to apply the fix provided in the Linux Kernel update. It is recommended to keep your system up to date with the latest security patches.
This vulnerability was discovered by the Linux Kernel security team during code review and analysis.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.