ASoC: mxs: Fix error handling in mxs_sgtl5000_probe
Summary
GSD-2022-1002257: ASoC: mxs: Fix error handling in mxs_sgtl5000_probe. Affects Kernel versions >= e968194b45c4e8077dada75c5bae5660b37628fe, < 67e12f1cb2f97468c12b59e21975eaa0f332e7d2. 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 devices integrated into SoCs (System on Chips). The mxs_sgtl5000 driver is responsible for handling the SGTL5000 audio codec on Freescale i.MX23/i.MX28 platforms. The SGTL5000 is a low-power stereo codec with a headphone amplifier and is commonly used in embedded systems. The mxs_sgtl5000_probe function is responsible for initializing and configuring the SGTL5000 codec during system boot.
Vulnerability Detail
The mxs_sgtl5000_probe function in the mxs_sgtl5000 driver in the ASoC framework of the Linux Kernel has an error handling issue. If the initialization of the SGTL5000 codec fails, the error handling code does not properly clean up resources, leading to a potential resource leak. An attacker with local access to the system could exploit this vulnerability to cause a denial-of-service condition 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 known workaround for this vulnerability. It is recommended to update the Linux Kernel to the fixed version.
Conclusion
The mxs_sgtl5000_probe function in the mxs_sgtl5000 driver of the ASoC framework in the Linux Kernel has an error handling issue that could lead to a resource leak. It is recommended to update the Linux Kernel to version v5.4.189 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The ASoC (Audio System on Chip) framework is a part of the Linux Kernel that provides support for audio devices integrated into SoCs (System on Chips). It allows for the configuration and control of audio codecs and audio interfaces on embedded systems.
The mxs_sgtl5000 driver is responsible for handling the SGTL5000 audio codec on Freescale i.MX23/i.MX28 platforms. The SGTL5000 is a low-power stereo codec with a headphone amplifier commonly used in embedded systems.
If exploited, this vulnerability could lead to a denial-of-service condition or potentially allow an attacker to execute arbitrary code with elevated privileges.
To fix this vulnerability, update your Linux Kernel to version v5.4.189 or later.
There is no known workaround for this vulnerability. It is recommended to update the Linux Kernel to the fixed version.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.