CVE-2024-50233

Source
https://cve.org/CVERecord?id=CVE-2024-50233
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50233.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-50233
Downstream
Related
Published
2024-11-09T10:14:43.442Z
Modified
2026-03-20T12:39:38.906273Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
staging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

In the ad9832writefrequency() function, clkgetrate() might return 0. This can lead to a division by zero when calling ad9832calcfreqreg(). The check if (fout > (clkgetrate(st->mclk) / 2)) does not protect against the case when fout is 0. The ad9832writefrequency() function is called from ad9832_write(), and fout is derived from a text buffer, which can contain any value.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50233.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ea707584bac187c9c6c64c4eacd1c09bcc08f37b
Fixed
fcd6b59f7a774558e2525251c68aa37aff748e55
Fixed
442f786c5bff8cfd756ebdeaa4aadbf05c22aa5a
Fixed
2f39548f45693d86e950647012a214da6917dc9f
Fixed
ccbc10647aafe2b7506edb4b10e19c6c2416c162
Fixed
adfbc08b94e7df08b9ed5fa26b969cc1b54c84ec
Fixed
dd9e1cf619c945f320e686dcaf13e37ef0b05fdd
Fixed
6bd301819f8f69331a55ae2336c8b111fc933f3d

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50233.json"