
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-47511 affects the Linux kernel's ALSA (Advanced Linux Sound Architecture) PCM OSS (Open Sound System) layer. The vulnerability was discovered and disclosed on May 24, 2024. The issue occurs in the period size calculation in the OSS layer, where negative values received as errors are incorrectly handled as positive values using size_t, potentially leading to passing too large values to lower layers (NVD).
The vulnerability stems from a type handling issue in the ALSA PCM OSS code. The period size calculation function assumes only positive values and handles them with size_t data type, but it may receive negative values as errors. This incorrect type handling could result in the conversion of negative values to very large positive numbers due to the unsigned nature of size_t. The fix involves changing the code to handle values with ssize_t (signed size type) and adding proper error checks (Kernel Commit).
When exploited, this vulnerability could lead to the passing of extremely large values to lower layers of the sound system, potentially causing system instability or crashes. The CVSS base score is 5.5 (Medium) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating local access is required and the primary impact is to system availability (NVD).
The vulnerability requires local access to the system and can be triggered through the ALSA PCM OSS interface. It has been reported by security researchers including syzbot (automated kernel testing system) and Bixuan Cui (Kernel Commit).
The vulnerability has been patched in the Linux kernel. The fix involves modifying the code to properly handle negative values using ssize_t instead of size_t and implementing appropriate error checks. System administrators should update their Linux kernel to a version containing the fix (Kernel Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."