Skip to content
CVE PROGRAM SOURCE RECORD5.5 Medium

CVE-2024-50233

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • ea707584bac187c9c6c64c4eacd1c09bcc08f37b to < fcd6b59f7a774558e2525251c68aa37aff748e55affected
  • ea707584bac187c9c6c64c4eacd1c09bcc08f37b to < 442f786c5bff8cfd756ebdeaa4aadbf05c22aa5aaffected
  • ea707584bac187c9c6c64c4eacd1c09bcc08f37b to < 2f39548f45693d86e950647012a214da6917dc9faffected
  • ea707584bac187c9c6c64c4eacd1c09bcc08f37b to < ccbc10647aafe2b7506edb4b10e19c6c2416c162affected
  • ea707584bac187c9c6c64c4eacd1c09bcc08f37b to < adfbc08b94e7df08b9ed5fa26b969cc1b54c84ecaffected
  • ea707584bac187c9c6c64c4eacd1c09bcc08f37b to < dd9e1cf619c945f320e686dcaf13e37ef0b05fddaffected
  • ea707584bac187c9c6c64c4eacd1c09bcc08f37b to < 6bd301819f8f69331a55ae2336c8b111fc933f3daffected

Linux Linux

Default version status: affected

  • 2.6.39affected
  • 0 to < 2.6.39unaffected
  • 5.4.285 to ≤ 5.4.*unaffected
  • 5.10.229 to ≤ 5.10.*unaffected
  • 5.15.171 to ≤ 5.15.*unaffected
  • 6.1.116 to ≤ 6.1.*unaffected
  • 6.6.60 to ≤ 6.6.*unaffected
  • 6.11.7 to ≤ 6.11.*unaffected
  • 6.12 to ≤ *unaffected

References