Vulnerability in ASoC: atmel package - sam9x5_wm8731_driver_probe Error Handling

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001870: ASoC: atmel: Fix error handling in sam9x5_wm8731_driver_probe. Affects Kernel versions >= fdbcb3cba54b29a37dfe42acdc0e72c543e0807d, < f589063b585ac6dd2081bde6c145411cf48d8d92. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The ASoC (Audio System on Chip) package, specifically the atmel module, is responsible for providing audio support for Atmel processors. It includes drivers for various audio codecs, such as the WM8731. The sam9x5_wm8731_driver_probe function within this module handles the initialization of the WM8731 codec on Atmel SAM9x5 processors. This function is vulnerable to an error handling issue.

Vulnerability Detail

The vulnerability lies in the error handling mechanism of the sam9x5_wm8731_driver_probe function. If an error occurs during the initialization process, the function does not properly handle the error and may not clean up resources correctly. This can lead to potential issues, such as memory leaks or other unexpected behavior. Attackers may be able to exploit this vulnerability to cause a denial-of-service (DoS) condition or execute arbitrary code.

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

If updating the Linux Kernel is not immediately feasible, users can implement a temporary workaround by modifying the sam9x5_wm8731_driver_probe function to include proper error handling. Here is an example of how the function can be modified:

static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
{
    int ret;

    // Existing code

    // Add error handling
    ret = some_function();
    if (ret < 0) {
        // Handle the error
        goto cleanup;
    }

    // Continue with the initialization

    return 0;

cleanup:
    // Cleanup resources

    return ret;
}

Conclusion

In conclusion, the ASoC atmel package is vulnerable to an error handling issue in the sam9x5_wm8731_driver_probe function. This vulnerability can potentially lead to memory leaks, unexpected behavior, and even remote code execution. It is crucial to update the Linux Kernel to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

ASoC stands for Audio System on Chip. It is a subsystem within the Linux Kernel that provides support for audio functionalities on various embedded systems, including Atmel processors.

The atmel package is a module within the ASoC subsystem that specifically handles audio support for Atmel processors. It includes drivers for different audio codecs, such as the WM8731.

The sam9x5_wm8731_driver_probe function is responsible for initializing the WM8731 audio codec on Atmel SAM9x5 processors. It is part of the atmel package within the ASoC subsystem.

This vulnerability can lead to various issues, including memory leaks and unexpected behavior. Attackers may be able to exploit this vulnerability to cause a denial-of-service (DoS) condition or execute arbitrary code.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.33 or later. This update includes a commit that addresses the error handling issue in the sam9x5_wm8731_driver_probe function.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback