# CVE-2024-50232: iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()

- 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.25%, higher than 17% of CVEs (2026-12-02)
- Published: 2024-11-09T10:14:42.414Z
- Modified: 2026-06-17T08:03:56.197Z
- 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:

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7b8d045e497a04dd88546da51f34fa3b102778d2 before 4f588fffc307a4bc2761aee6ff275bb4b433e451; from 7b8d045e497a04dd88546da51f34fa3b102778d2 before f51343f346e6abde094548a7fb34472b0d4cae91; from 7b8d045e497a04dd88546da51f34fa3b102778d2 before 3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95; from 7b8d045e497a04dd88546da51f34fa3b102778d2 before 0ac0beb4235a9a474f681280a3bd4e2a5bb66569; from 7b8d045e497a04dd88546da51f34fa3b102778d2 before efa353ae1b0541981bc96dbf2e586387d0392baa; 5.13 (not affected: before 5.13; 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 5.13 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/4f588fffc307a4bc2761aee6ff275bb4b433e451> (patch)
- <https://git.kernel.org/stable/c/f51343f346e6abde094548a7fb34472b0d4cae91> (patch)
- <https://git.kernel.org/stable/c/3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95> (patch)
- <https://git.kernel.org/stable/c/0ac0beb4235a9a474f681280a3bd4e2a5bb66569> (patch)
- <https://git.kernel.org/stable/c/efa353ae1b0541981bc96dbf2e586387d0392baa> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

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