CVE-2024-50233 staging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg()
A local attacker can cause a kernel crash by writing specific values to the AD9832 frequency driver, leading to a 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-50233?
CVE-2024-50233 is a medium-severity denial of service vulnerability in Linux kernel, published on 9 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:
staging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg()
In the ad9832_write_frequency() function, clk_get_rate() might return 0. This can lead to a division by zero when calling ad9832_calc_freqreg(). The check if (fout > (clk_get_rate(st->mclk) / 2)) does not protect against the case when fout is 0. The ad9832_write_frequency() function is called from ad9832_write(), and fout is derived from a text buffer, which can contain any value.
Weakness: CWE-369
Which versions are affected by CVE-2024-50233?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50233?
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-50233 being exploited?
There is no known exploitation of CVE-2024-50233 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-53088, AZL-53162, BELL-CVE-2024-50233, DEBIAN-CVE-2024-50233, GHSA-56rv-pwm3-v8q5, UBUNTU-CVE-2024-50233.