ASoC: ops: Reject out of bounds values in snd_soc_put_volsw() - Kernel

Kernel Updated 02 Oct 2025

Summary

18/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000281: ASoC: ops: Reject out of bounds values in snd_soc_put_volsw(). Affects Kernel versions < 9e8895f1b3d4433f6d78aa6578e9db61ca6e6830. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a critical component of the Linux operating system that provides core functionalities and acts as a bridge between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The ASoC (Audio System on Chip) subsystem within the Kernel is responsible for handling audio-related functionalities, including audio codecs, digital signal processing, and audio interfaces. This vulnerability specifically affects the 'snd_soc_put_volsw()' function in the ASoC ops (operations) code.

Vulnerability Detail

The 'snd_soc_put_volsw()' function in the ASoC ops code of the Kernel fails to properly validate input values, allowing out of bounds values to be accepted. This vulnerability could be exploited by an attacker to manipulate audio volume settings beyond the intended range, potentially leading to audio distortion, damage to audio hardware, or even denial of service. The lack of proper input validation poses a security risk and compromises the integrity and functionality of the affected system.

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 validate and sanitize input values before passing them to the 'snd_soc_put_volsw()' function. This can be done by implementing custom input validation checks and ensuring that the values fall within the acceptable range. Here is an example of how this can be achieved in C programming language:

#include <linux/sound/soc.h>

int validate_and_set_volume(int volume)
{
    if (volume < 0 || volume > MAX_VOLUME)
    {
        printk(KERN_ERR "Invalid volume value!\n");
        return -EINVAL;
    }

    // Set the volume using snd_soc_put_volsw()
    // ...

    return 0;
}

Conclusion

In conclusion, the 'snd_soc_put_volsw()' function in the ASoC ops code of the Kernel is vulnerable to accepting out of bounds values, which can lead to various audio-related issues and potential system compromise. It is crucial to update the Linux Kernel to version v5.15.22 or later to mitigate this vulnerability. Additionally, implementing input validation checks can serve as a temporary workaround until the update is applied. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability allows attackers to manipulate audio volume settings beyond the intended range, potentially leading to audio distortion, damage to audio hardware, or even denial of service.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it in real-time to identify any open-source vulnerabilities, including this one.

Yes, the vulnerability has been fixed in Linux Kernel version v5.15.22. It is recommended to update your Kernel to this version or later to ensure the vulnerability is patched.

Yes, a workaround is to manually validate and sanitize input values before passing them to the 'snd_soc_put_volsw()' function. This can be done by implementing custom input validation checks and ensuring that the values fall within the acceptable range.

You can find more information about this vulnerability in the GSD-2022-1000281 entry of the GSD database maintained by the Cloud Security Alliance. The source link is available at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000281.json.

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