ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe
Summary
GSD-2022-1003148: ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe. Affects Kernel versions >= 8625c1dbd87631572f8e2c05bc67736b73d6f02f, < 318afb1442eeef089fe7f8a8297d97c0302ff6f6. 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 on various SoC platforms. The mediatek driver is responsible for handling audio on MediaTek SoCs. The mt2701_wm8960_machine_probe function is a part of this driver and is used to initialize the audio codec on the MT2701 platform with the WM8960 codec. However, there is a missing of_node_put call in this function, which can lead to a reference leak and potential resource exhaustion.
Vulnerability Detail
The missing of_node_put call in mt2701_wm8960_machine_probe can result in a reference leak, causing potential resource exhaustion. This vulnerability can be exploited by an attacker to exhaust system resources, leading to a denial of service (DoS) condition. The impact of this vulnerability may vary depending on the specific use case and system configuration.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, the missing of_node_put call should be added to the mt2701_wm8960_machine_probe function. This will ensure that the reference count of the device tree node is properly decremented, preventing resource leaks. The fix for this vulnerability has been implemented in Linux Kernel version v5.17.14 by commit 318afb1442eeef089fe7f8a8297d97c0302ff6f6.
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 available for this vulnerability. It is recommended to apply the fix provided in the Linux Kernel update.
Conclusion
The missing of_node_put call in mt2701_wm8960_machine_probe can result in a reference leak and potential resource exhaustion. It is recommended to apply the fix provided in the Linux Kernel update to mitigate 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 framework in the Linux Kernel that provides support for audio drivers on various SoC platforms. It enables the integration of audio functionality into embedded systems.
The mediatek driver is responsible for handling audio on MediaTek SoCs (System on Chips). It provides the necessary functionality to initialize and control audio codecs on these platforms.
mt2701_wm8960_machine_probe is a function in the mediatek driver that is used to initialize the audio codec on the MT2701 platform with the WM8960 codec. It is called during the system boot process.
A reference leak occurs when a reference to a resource is not properly released or deallocated. This can lead to resource exhaustion and potential system instability or denial of service.
This vulnerability can be exploited by an attacker to exhaust system resources, leading to a denial of service (DoS) condition. However, the specific impact may vary depending on the system configuration and use case.
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.