ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001608: ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock. Affects Kernel versions >= 4d1b0ace2d56dc27cc4921eda7fae57f77f03eb5, < abedf0d08c79d76da0d6fa0d5dbbc98871dcbc2e. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The ALSA (Advanced Linux Sound Architecture) package is responsible for providing audio and MIDI functionality to the Linux operating system. It includes drivers, libraries, and utilities for audio devices. The pcm component of ALSA is responsible for handling audio data streams and managing the memory buffers used for audio playback and recording. The pcm component uses two locks, buffer_mutex and mmap_lock, to ensure thread safety and prevent data corruption. However, a potential AB/BA lock issue has been identified in the pcm component, which could lead to a deadlock situation and impact the stability and reliability of audio playback and recording on Linux systems.

Vulnerability Detail

The vulnerability in the pcm component of ALSA arises from a potential AB/BA lock issue with the buffer_mutex and mmap_lock. This lock issue could result in a deadlock scenario, where two or more threads are unable to proceed due to circular dependencies on the locks. This can lead to audio playback and recording becoming unresponsive or freezing. An attacker could potentially exploit this vulnerability to disrupt audio functionality on affected Linux systems. The vulnerability was introduced in Linux Kernel version v5.16.18 and has been fixed in version v5.16.19.

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 by updating the Linux Kernel as mentioned in the 'how_to_fix' section.

Conclusion

The potential AB/BA lock issue in the pcm component of ALSA can lead to a deadlock situation, impacting the stability and reliability of audio playback and recording on Linux systems. It is crucial to update the Linux Kernel to version v5.16.19 or later to mitigate this vulnerability. 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 audio and MIDI functionality to Linux systems. It includes drivers, libraries, and utilities for audio devices.

The pcm component of ALSA is responsible for handling audio data streams and managing the memory buffers used for audio playback and recording.

A deadlock is a situation where two or more threads are unable to proceed because each is waiting for the other to release a resource or lock. This can result in a system freeze or unresponsiveness.

An attacker could potentially exploit this vulnerability to disrupt audio functionality on affected Linux systems by triggering a deadlock scenario in the pcm component of ALSA.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your Linux system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze and alert you if the vulnerability is present.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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