Vulnerability in ASoC: atmel Package - Missing of_node_put() in at91sam9g20ek_audio_probe
Summary
GSD-2022-1001254: ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe. Affects Kernel versions >= 531f67e41dcde1e358cf821d056241a66355cf03, < 4793a02deb31b71b3984abc67bf1011a03c13b18. 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) package, specifically the atmel component, is responsible for providing audio support for Atmel processors. It enables audio input and output functionalities on Atmel-based devices. The at91sam9g20ek_audio_probe function within the package is responsible for initializing the audio subsystem on the Atmel AT91SAM9G20EK development board. However, a missing of_node_put() call in this function can lead to a resource leak, potentially causing memory exhaustion and system instability.
Vulnerability Detail
The vulnerability arises from the absence of an of_node_put() call in the at91sam9g20ek_audio_probe function of the ASoC atmel package. This omission can result in a resource leak, where the reference count of the device tree node is not properly decremented. As a consequence, memory may not be released, leading to memory exhaustion and potential system instability. An attacker with local access to the affected device could potentially exploit this vulnerability to exhaust system resources, causing a denial-of-service (DoS) condition.
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
As a workaround, users can manually add the missing of_node_put() call in the at91sam9g20ek_audio_probe function of the ASoC atmel package. The following code snippet demonstrates the addition:
static int at91sam9g20ek_audio_probe(struct platform_device *pdev)
{
// Existing code
// Add the following line
of_node_put(pdev->dev.of_node);
// Existing code
}
Conclusion
The ASoC atmel package contains a vulnerability in the at91sam9g20ek_audio_probe function, where a missing of_node_put() call can lead to a resource leak and potential system instability. To mitigate this vulnerability, it is crucial to apply the fix provided in Linux Kernel version v5.17.2. Alternatively, users can manually add the missing of_node_put() call as a temporary workaround. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The ASoC (Audio System on Chip) package is responsible for providing audio support for specific chipsets or processors. It enables audio input and output functionalities on devices using these chipsets or processors.
The atmel component within the ASoC package is specifically designed to provide audio support for Atmel processors. It includes drivers and functions necessary for audio input and output on Atmel-based devices.
The at91sam9g20ek_audio_probe function is a part of the ASoC atmel package and is responsible for initializing the audio subsystem on the Atmel AT91SAM9G20EK development board. It sets up the necessary configurations and resources for audio input and output on the board.
The vulnerability can lead to a resource leak, potentially causing memory exhaustion and system instability. An attacker with local access to the affected device could exploit this vulnerability to exhaust system resources, resulting in a denial-of-service (DoS) condition.
Yes, this vulnerability has been fixed in Linux Kernel version v5.17.2 by commit 4793a02deb31b71b3984abc67bf1011a03c13b18.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.