ALSA: pcm: oss: Limit the period size to 16MB
Summary
GSD-2021-1002460: ALSA: pcm: oss: Limit the period size to 16MB. Affects Kernel versions < 76f19e4cbb548e28547f8c328aa0bfb3a10222d3. 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 the sound card hardware and provides features such as audio playback, recording, and mixing. The PCM (Pulse Code Modulation) subsystem within ALSA handles digital audio data and provides an interface for applications to access and manipulate audio streams. The OSS (Open Sound System) is a deprecated audio API for Unix-like operating systems, including Linux. It provides compatibility with older applications that use the OSS API. The vulnerability in the ALSA pcm oss driver allows for an excessively large period size, which can lead to memory corruption and potential security issues.
Vulnerability Detail
The vulnerability in the ALSA pcm oss driver allows for an excessively large period size, which can lead to memory corruption. By specifying a large period size, an attacker could potentially overwrite adjacent memory regions, leading to a variety of security issues such as privilege escalation, information disclosure, or denial of service. The impact and attack plausibility of this vulnerability have not been proven, but it is considered a potential security risk.
How To Fix
No fixed version is published for this vulnerability.
The vulnerability has been fixed in Linux Kernel version v5.4.165 by commit 76f19e4cbb548e28547f8c328aa0bfb3a10222d3. To fix the vulnerability, users should update their Linux kernel to version v5.4.165 or later. This can be done by downloading the updated kernel source code from the official Linux kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling it for their specific system. Alternatively, users can wait for their Linux distribution to provide an updated kernel package and install it through the package manager.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The ALSA pcm oss driver vulnerability allows for an excessively large period size, which can lead to memory corruption and potential security issues. It is recommended to update the Linux kernel to version v5.4.165 or later to mitigate this vulnerability. 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.
PCM (Pulse Code Modulation) is a digital representation of an analog audio signal.
OSS (Open Sound System) is a deprecated audio API for Unix-like operating systems, including Linux.
The impact of this vulnerability includes potential memory corruption, which can lead to security issues such as privilege escalation, information disclosure, or denial of service.
To fix this vulnerability, update your Linux kernel to version v5.4.165 or later.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.