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-1001331: ALSA: pcm: Fix races among concurrent hw_params and hw_free calls. Affects Kernel versions < 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b. 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 Your last release was probably never penetration tested 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 and MIDI functionality to Linux-based systems. It includes drivers, libraries, and utilities for audio devices. The pcm component of ALSA is responsible for managing the PCM (Pulse Code Modulation) audio streams. PCM is a method used to digitally represent analog audio signals. The pcm component handles operations such as opening and closing audio devices, configuring hardware parameters, and freeing resources. However, there is a vulnerability in the pcm component that allows for races among concurrent hw_params and hw_free calls.

Vulnerability Detail

The vulnerability in the pcm component of ALSA allows for races among concurrent hw_params and hw_free calls. This means that when multiple processes or threads attempt to configure hardware parameters (hw_params) and free resources (hw_free) at the same time, there is a possibility of race conditions. Race conditions can lead to inconsistent or unexpected behavior, including crashes, data corruption, or privilege escalation. The vulnerability has been fixed in Linux Kernel version v5.17.1 by commit 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b.

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 apply the fix as soon as possible.

Conclusion

The vulnerability in the pcm component of ALSA can lead to race conditions among concurrent hw_params and hw_free calls. It is recommended to update the Linux Kernel to version v5.17.1 or later to fix this vulnerability. There is no known workaround, so applying the fix is crucial to ensure the security and stability of the system. For further support on vulnerability remediation, please 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 an interface for audio and MIDI functionality on Linux-based systems.

The pcm component of ALSA is responsible for managing PCM (Pulse Code Modulation) audio streams. It handles operations such as opening and closing audio devices, configuring hardware parameters, and freeing resources.

A race condition is a situation in which the behavior of a program or system depends on the relative timing of events, such as concurrent execution of multiple processes or threads. In the case of this vulnerability, race conditions can occur when multiple processes or threads attempt to configure hardware parameters and free resources at the same time.

The possible consequences of this vulnerability include crashes, data corruption, or privilege escalation. Race conditions can lead to inconsistent or unexpected behavior, which can be exploited by attackers to gain unauthorized access or disrupt the system.

You can use Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software. You can visit the Vulert playground (https://vulert.com/scanner) without any signup to check if your application is affected.

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