CVE-2024-50233

staging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg()

Medium · published November 9, 2024

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

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.

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.00267 · 17.8th percentile
Published
2024-11-09T10:14Z
EPSS history
Timeline
  • 09 NOV 10:14Z
    staging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg()
    cvelistv5