CVE-2024-50205 ALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size()
A division by zero error in the Linux kernel ALSA firewire library can cause a system crash, requiring a kernel patch to prevent denial of service.
- 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-2024-50205?
CVE-2024-50205 is a medium-severity denial of service vulnerability in Linux kernel, published on 8 Nov 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: firewire-lib: Avoid division by zero in apply_constraint_to_size()
The step variable is initialized to zero. It is changed in the loop, but if it's not changed it will remain zero. Add a variable check before the division.
The observed behavior was introduced by commit 826b5de90c0b ("ALSA: firewire-lib: fix insufficient PCM rule for period/buffer size"), and it is difficult to show that any of the interval parameters will satisfy the snd_interval_test() condition with data from the amdtp_rate_table[] table.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Weakness: CWE-369
Which versions are affected by CVE-2024-50205?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50205?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-50205 being exploited?
There is no known exploitation of CVE-2024-50205 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-53025, AZL-53106, BELL-CVE-2024-50205, DEBIAN-CVE-2024-50205, GHSA-wpwf-qxpx-v6qh, UBUNTU-CVE-2024-50205.