ALSA: pcm: oss: Limit the period size to 16MB
Summary
GSD-2021-1002383: ALSA: pcm: oss: Limit the period size to 16MB. Affects Kernel versions < b02a41eebcc36d4f07196780f2e165ca2c499257. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 allows applications to communicate with sound devices and perform audio-related tasks. The PCM (Pulse Code Modulation) subsystem within ALSA handles digital audio data streams. The OSS (Open Sound System) is a deprecated audio interface for Unix-like operating systems, including Linux. This vulnerability affects the ALSA PCM OSS module, which provides compatibility with legacy OSS applications.
The vulnerability in the ALSA PCM OSS module allows an attacker to set an excessively large period size, leading to a potential heap overflow. By exploiting this vulnerability, an attacker may be able to execute arbitrary code with kernel privileges or cause a denial-of-service condition.
Vulnerability Detail
The vulnerability arises from a lack of proper input validation in the ALSA PCM OSS module. When an application requests a period size larger than the allowed limit of 16MB, the module fails to handle it correctly, leading to a heap overflow. This can be exploited by an attacker to execute arbitrary code with kernel privileges or cause a denial-of-service condition.
The impact of this vulnerability depends on the attacker's ability to interact with the affected system and the privileges they possess. Successful exploitation could result in a complete compromise of the system or disruption of audio functionality.
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 ALSA PCM OSS module by removing or blacklisting the corresponding kernel module. This can be achieved by modifying the kernel configuration or using tools like modprobe or rmmod to unload the module. However, disabling the ALSA PCM OSS module may impact compatibility with legacy OSS applications that rely on it.
Conclusion
The ALSA PCM OSS module in the Linux kernel is vulnerable to a heap overflow when an excessively large period size is requested. This can be exploited by an attacker to execute arbitrary code with kernel privileges or cause a denial-of-service condition. It is recommended to update the Linux kernel to version v4.9.293 or later to fix this vulnerability. Users can also disable the ALSA PCM OSS module as a workaround, but this may affect compatibility with legacy OSS applications. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
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 handles digital audio data streams.
The ALSA PCM OSS module is a component of ALSA that provides compatibility with legacy OSS applications. It allows these applications to use the ALSA API by emulating the deprecated OSS audio interface.
The impact of this vulnerability depends on the attacker's ability to interact with the affected system and the privileges they possess. Successful exploitation could result in a complete compromise of the system or disruption of audio functionality.
To fix this vulnerability, it is recommended to update the Linux kernel to version v4.9.293 or later. This fix is included in the commit b02a41eebcc36d4f07196780f2e165ca2c499257.
Yes, as a workaround, users can disable the ALSA PCM OSS module by removing or blacklisting the corresponding kernel module. However, this may impact compatibility with legacy OSS applications that rely on it.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.