# CVE-2024-50233: staging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2024-11-09T10:14:43.442Z
- Modified: 2026-06-17T08:03:56.360Z
- Weaknesses: CWE-369
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ea707584bac187c9c6c64c4eacd1c09bcc08f37b before fcd6b59f7a774558e2525251c68aa37aff748e55; from ea707584bac187c9c6c64c4eacd1c09bcc08f37b before 442f786c5bff8cfd756ebdeaa4aadbf05c22aa5a; from ea707584bac187c9c6c64c4eacd1c09bcc08f37b before 2f39548f45693d86e950647012a214da6917dc9f; from ea707584bac187c9c6c64c4eacd1c09bcc08f37b before ccbc10647aafe2b7506edb4b10e19c6c2416c162; from ea707584bac187c9c6c64c4eacd1c09bcc08f37b before adfbc08b94e7df08b9ed5fa26b969cc1b54c84ec; from ea707584bac187c9c6c64c4eacd1c09bcc08f37b before dd9e1cf619c945f320e686dcaf13e37ef0b05fdd; from ea707584bac187c9c6c64c4eacd1c09bcc08f37b before 6bd301819f8f69331a55ae2336c8b111fc933f3d; 2.6.39 (not affected: before 2.6.39; from 5.4.285 up to 5.4.*; from 5.10.229 up to 5.10.*; from 5.15.171 up to 5.15.*; from 6.1.116 up to 6.1.*; from 6.6.60 up to 6.6.*; from 6.11.7 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 2.6.39 before 5.4.285; from 5.5 before 5.10.229; from 5.11 before 5.15.171; from 5.16 before 6.1.116; from 6.2 before 6.6.60; from 6.7 before 6.11.7; 6.12

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/fcd6b59f7a774558e2525251c68aa37aff748e55> (patch)
- <https://git.kernel.org/stable/c/442f786c5bff8cfd756ebdeaa4aadbf05c22aa5a> (patch)
- <https://git.kernel.org/stable/c/2f39548f45693d86e950647012a214da6917dc9f> (patch)
- <https://git.kernel.org/stable/c/ccbc10647aafe2b7506edb4b10e19c6c2416c162> (patch)
- <https://git.kernel.org/stable/c/adfbc08b94e7df08b9ed5fa26b969cc1b54c84ec> (patch)
- <https://git.kernel.org/stable/c/dd9e1cf619c945f320e686dcaf13e37ef0b05fdd> (patch)
- <https://git.kernel.org/stable/c/6bd301819f8f69331a55ae2336c8b111fc933f3d> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-50233](https://www.cve.org/CVERecord?id=CVE-2024-50233), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50233](https://nvd.nist.gov/vuln/detail/CVE-2024-50233), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50233 · Whole record: https://cve.day/CVE-2024-50233.json · Rebuilt by cve.day 2026-11-25T22:58:47.971Z
