CVE-2024-50232

iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()

Medium · published November 9, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
15.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00249 · 15.3th percentile
Published
2024-11-09T10:14Z
EPSS history
Timeline
  • 09 NOV 10:14Z
    iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()
    cvelistv5