CVE-2024-50232 iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()
A local attacker can cause a kernel crash via division by zero in the AD7124 ADC driver by writing a zero value to a channel attribute.
- 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-50232?
CVE-2024-50232 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:
iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()
In the ad7124_write_raw() function, parameter val can potentially be zero. This may lead to a division by zero when DIV_ROUND_CLOSEST() is called within ad7124_set_channel_odr(). The ad7124_write_raw() function is invoked through the sequence: iio_write_channel_raw() -> iio_write_channel_attribute() -> iio_channel_write(), with no checks in place to ensure val is non-zero.
Weakness: CWE-369
Which versions are affected by CVE-2024-50232?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50232?
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-50232 being exploited?
There is no known exploitation of CVE-2024-50232 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-53052, AZL-53147, BELL-CVE-2024-50232, DEBIAN-CVE-2024-50232, GHSA-8cgv-6qhm-jgp2, UBUNTU-CVE-2024-50232.