ASoC Codecs wcd934x: Missing of_node_put() in wcd934x_codec_parse_data
Summary
GSD-2022-1001869: ASoC: codecs: wcd934x: Add missing of_node_put() in wcd934x_codec_parse_data. Affects Kernel versions >= a61f3b4f476eceb25274161e5a53a8d18e42610b, < 2f44eca78cc6d4e1779eb95765ec79e433accab4. 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
ASoC (Audio System on Chip) is a subsystem in the Linux kernel that provides audio support for embedded systems. The wcd934x codec is a part of ASoC and is responsible for handling audio data on Qualcomm Snapdragon platforms. The wcd934x_codec_parse_data function is used to parse device tree data for the wcd934x codec. However, there is a missing of_node_put() call in this function, which can lead to a reference leak.
Vulnerability Detail
The missing of_node_put() call in wcd934x_codec_parse_data can result in a reference leak, where the reference count for the device tree node is not properly decremented. This can lead to memory leaks and potential resource exhaustion. An attacker may be able to exploit this vulnerability to cause a denial of service or potentially execute arbitrary code with elevated privileges.
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 specific workaround mentioned for this vulnerability.
Conclusion
The ASoC wcd934x codec is vulnerable to a missing of_node_put() call in the wcd934x_codec_parse_data function. This can result in memory leaks and potential resource exhaustion. It is recommended to update to Linux Kernel version v5.15.33 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
ASoC (Audio System on Chip) is a subsystem in the Linux kernel that provides audio support for embedded systems.
The wcd934x codec is a part of ASoC and is responsible for handling audio data on Qualcomm Snapdragon platforms.
The vulnerability can lead to memory leaks and potential resource exhaustion. An attacker may be able to cause a denial of service or potentially execute arbitrary code with elevated privileges.
To fix this vulnerability, update to Linux Kernel version v5.15.33 or later, which includes the necessary fix commit (2f44eca78cc6d4e1779eb95765ec79e433accab4).
There is no specific workaround mentioned for this vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.