ALSA: pcm: oss: Fix negative period/buffer sizes in Kernel

Kernel Updated 02 Oct 2025

Summary

19/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002365: ALSA: pcm: oss: Fix negative period/buffer sizes. Affects Kernel versions < be8869d388593e57223ad39297c8e54be632f2f2. 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 Kernel is a crucial component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software. It manages system resources, including memory, processes, and device drivers. The Advanced Linux Sound Architecture (ALSA) is a part of the Kernel that provides audio support for Linux-based systems. ALSA's PCM (Pulse Code Modulation) subsystem handles audio data transfer between applications and sound hardware. The OSS (Open Sound System) emulation layer within ALSA allows compatibility with older applications that use the OSS API. However, a vulnerability has been identified in the OSS emulation layer that could lead to negative period/buffer sizes.

Vulnerability Detail

The vulnerability in the ALSA PCM OSS emulation layer allows for negative period/buffer sizes. This issue arises due to improper handling of period and buffer size calculations, which can result in a negative value. An attacker could potentially exploit this vulnerability to cause a denial-of-service (DoS) condition or execute arbitrary code with kernel-level privileges. The impact and attack plausibility of this vulnerability have not been proven yet. It is important to note that this vulnerability has been fixed in the Linux Kernel version v4.4.295 by commit be8869d388593e57223ad39297c8e54be632f2f2.

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 disable the OSS emulation layer in ALSA by modifying the kernel configuration. This can be achieved by deselecting the 'Sound card support' and 'Open Sound System (DEPRECATED)' options in the kernel configuration menu. However, this workaround may impact compatibility with older applications that rely on the OSS API.

Conclusion

The ALSA PCM OSS emulation layer vulnerability, which allowed for negative period/buffer sizes, has been addressed in the Linux Kernel version v4.4.295. It is crucial to update the Kernel to the fixed version to mitigate the risk of potential exploitation. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The ALSA PCM OSS emulation layer is a component of the Advanced Linux Sound Architecture (ALSA) that provides compatibility with applications using the Open Sound System (OSS) API. It allows older applications to interface with the modern ALSA subsystem for audio functionality.

Period and buffer sizes refer to the amount of audio data that can be processed or stored at a time. Negative sizes indicate a calculation or handling error, which can lead to unexpected behavior or vulnerabilities.

This vulnerability could potentially be exploited by an attacker to cause a denial-of-service (DoS) condition or execute arbitrary code with kernel-level privileges. However, the actual impact and attack plausibility have not been proven yet.

Yes, this vulnerability has been fixed in the Linux Kernel version v4.4.295 by commit be8869d388593e57223ad39297c8e54be632f2f2.

Yes, a workaround is to disable the OSS emulation layer in ALSA by modifying the kernel configuration. However, this may impact compatibility with older applications that rely on the OSS API.

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