ALSA: pcm: Fix races among concurrent hw_params and hw_free calls

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001634: ALSA: pcm: Fix races among concurrent hw_params and hw_free calls. Affects Kernel versions < 0090c13cbbdffd7da079ac56f80373a9a1be0bf8. 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 ALSA (Advanced Linux Sound Architecture) package is responsible for providing audio functionality in the Linux kernel. It includes drivers, libraries, and utilities for audio devices. The pcm component within ALSA handles the PCM (Pulse Code Modulation) audio data, which is the standard format for digital audio in computers and other digital audio devices. PCM data is processed and transferred between applications and audio hardware through the pcm component.

Vulnerability Detail

The vulnerability in ALSA's pcm component involves races among concurrent hw_params and hw_free calls. This means that when multiple processes or threads attempt to modify the hardware parameters (hw_params) or free the hardware resources (hw_free) of the PCM audio device simultaneously, race conditions can occur. These race conditions can lead to inconsistent or corrupted data, resulting in potential audio playback or recording issues. The impact and attack plausibility of this vulnerability have not yet been proven.

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 →

Conclusion

The vulnerability in ALSA's pcm component, which involves races among concurrent hw_params and hw_free calls, has been fixed in Linux Kernel version v5.16.18. Users should update their Linux Kernel to the fixed version to mitigate the potential audio playback or recording issues. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

ALSA (Advanced Linux Sound Architecture) is a software framework and part of the Linux kernel that provides audio functionality for Linux-based systems. It includes drivers, libraries, and utilities for audio devices.

The pcm component in ALSA handles PCM (Pulse Code Modulation) audio data, which is the standard format for digital audio in computers and other digital audio devices. It processes and transfers PCM data between applications and audio hardware.

hw_params and hw_free are functions in ALSA's pcm component. hw_params is used to set the hardware parameters of the PCM audio device, such as sample rate and channel configuration. hw_free is used to release the hardware resources used by the PCM audio device.

Race conditions occur when multiple processes or threads access shared resources concurrently and the outcome of their execution depends on the order in which the operations are executed. In the case of this vulnerability, race conditions can lead to inconsistent or corrupted data when modifying hardware parameters or freeing hardware resources of the PCM audio device.

To fix the vulnerability, update your Linux Kernel to version v5.16.18 or later. Download the updated kernel source code from the official Linux Kernel repository and compile it for your system. Refer to the official documentation for detailed instructions on how to compile and install the Linux Kernel.

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