CVE-2021-47511 ALSA: pcm: oss: Fix negative period/buffer sizes
A local attacker can trigger a denial of service in the Linux kernel by exploiting an integer overflow in the ALSA OSS layer's period size calculation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47511?
CVE-2021-47511 is a medium-severity vulnerability in Linux kernel, published on 24 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: oss: Fix negative period/buffer sizes
The period size calculation in OSS layer may receive a negative value as an error, but the code there assumes only the positive values and handle them with size_t. Due to that, a too big value may be passed to the lower layers.
This patch changes the code to handle with ssize_t and adds the proper error checks appropriately.
Which versions are affected by CVE-2021-47511?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47511?
Apply the vendor's patch.
Is CVE-2021-47511 being exploited?
There is no known exploitation of CVE-2021-47511 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47511, UBUNTU-CVE-2021-47511.