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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2024-11-09T10:14:43.442Z
- **Modified:** 2026-06-17T08:03:56.360Z

## Who should check

- Anyone running Linux \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< fcd6b59f7a774558e2525251c68aa37aff748e55; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< 442f786c5bff8cfd756ebdeaa4aadbf05c22aa5a; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< 2f39548f45693d86e950647012a214da6917dc9f; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< ccbc10647aafe2b7506edb4b10e19c6c2416c162; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< adfbc08b94e7df08b9ed5fa26b969cc1b54c84ec; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< dd9e1cf619c945f320e686dcaf13e37ef0b05fdd; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< 6bd301819f8f69331a55ae2336c8b111fc933f3d
- Anyone running Linux 2.6.39

## 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 and fixed versions

- Linux: \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< fcd6b59f7a774558e2525251c68aa37aff748e55; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< 442f786c5bff8cfd756ebdeaa4aadbf05c22aa5a; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< 2f39548f45693d86e950647012a214da6917dc9f; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< ccbc10647aafe2b7506edb4b10e19c6c2416c162; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< adfbc08b94e7df08b9ed5fa26b969cc1b54c84ec; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< dd9e1cf619c945f320e686dcaf13e37ef0b05fdd; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< 6bd301819f8f69331a55ae2336c8b111fc933f3d (cvelist)
- Linux: 2.6.39 (cvelist)

## Mitigation

- Upgrade Linux to 6bd301819f8f69331a55ae2336c8b111fc933f3d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50233. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50233.md
Affected: Linux >= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, < fcd6b59f7a774558e2525251c68aa37aff748e55; >= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, < 442f786c5bff8cfd756ebdeaa4aadbf05c22aa5a; >= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, < 2f39548f45693d86e950647012a214da6917dc9f; >= ea707584bac187c9c6c64c4…
Fixed in: Linux 442f786c5bff8cfd756ebdeaa4aadbf05c22aa5a, Linux 2f39548f45693d86e950647012a214da6917dc9f, Linux 6bd301819f8f69331a55ae2336c8b111fc933f3d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-50233 being exploited?

There is no confirmed exploitation: CVE-2024-50233 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-50233?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50233?

Linux \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< fcd6b59f7a774558e2525251c68aa37aff748e55; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< 442f786c5bff8cfd756ebdeaa4aadbf05c22aa5a; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< 2f39548f45693d86e950647012a214da6917dc9f; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< ccbc10647aafe2b7506edb4b10e19c6c2416c162; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< adfbc08b94e7df08b9ed5fa26b969cc1b54c84ec; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< dd9e1cf619c945f320e686dcaf13e37ef0b05fdd; \>= ea707584bac187c9c6c64c4eacd1c09bcc08f37b, \< 6bd301819f8f69331a55ae2336c8b111fc933f3d; Linux 2.6.39.

### Is there a fix for CVE-2024-50233?

Yes. Fixed in Linux 442f786c5bff8cfd756ebdeaa4aadbf05c22aa5a, Linux 2f39548f45693d86e950647012a214da6917dc9f, Linux 6bd301819f8f69331a55ae2336c8b111fc933f3d. Upgrade Linux to 6bd301819f8f69331a55ae2336c8b111fc933f3d or later.

### How do I check if I'm affected by CVE-2024-50233?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50233>

HTML: <https://flawdb.com/CVE-2024-50233> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50233>
