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-1002151: ALSA: pcm: Fix races among concurrent hw_params and hw_free calls. Affects Kernel versions < 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8. 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 ALSA (Advanced Linux Sound Architecture) is a software framework and part of the Linux kernel that provides an API for sound card drivers. It enables audio and MIDI functionality on Linux-based systems. The PCM (Pulse Code Modulation) subsystem within ALSA handles audio data streaming between applications and sound hardware. It allows applications to configure and control audio parameters such as sample rate, format, and channel count. However, a vulnerability has been discovered in the PCM subsystem that can lead to races among concurrent hw_params and hw_free calls.

Vulnerability Detail

The vulnerability in the ALSA PCM subsystem arises due to improper handling of concurrent hw_params and hw_free calls. When multiple threads or processes attempt to configure audio parameters (hw_params) and release resources (hw_free) simultaneously, a race condition occurs. This race condition can result in memory corruption, leading to potential crashes, privilege escalation, or other security issues. The vulnerability has been identified in the Linux Kernel version prior to v5.10.109.

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, a possible workaround is to avoid concurrent execution of hw_params and hw_free calls. This can be achieved by implementing proper synchronization mechanisms, such as using locks or semaphores, to ensure that only one thread or process accesses the PCM subsystem at a time. By serializing the execution of these calls, the race condition can be mitigated.

Conclusion

The ALSA PCM subsystem vulnerability, which involves races among concurrent hw_params and hw_free calls, can lead to memory corruption and various security risks. It is crucial to update the Linux Kernel to version v5.10.109 or later to mitigate this vulnerability. If immediate kernel update is not possible, implementing proper synchronization mechanisms to avoid concurrent execution of hw_params and hw_free calls can serve as a temporary workaround. 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 API for sound card drivers and enables audio and MIDI functionality on Linux-based systems.

The PCM (Pulse Code Modulation) subsystem within ALSA handles audio data streaming between applications and sound hardware. It allows applications to configure and control audio parameters such as sample rate, format, and channel count.

The vulnerability can result in memory corruption, leading to potential crashes, privilege escalation, or other security issues.

The vulnerability is present in Linux Kernel versions prior to v5.10.109.

To fix this vulnerability, update the Linux Kernel to version v5.10.109 or later.

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