{"id":"CVE-2024-50232","summary":"iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()\n\nIn the ad7124_write_raw() function, parameter val can potentially\nbe zero. This may lead to a division by zero when DIV_ROUND_CLOSEST()\nis called within ad7124_set_channel_odr(). The ad7124_write_raw()\nfunction is invoked through the sequence: iio_write_channel_raw() -\u003e\niio_write_channel_attribute() -\u003e iio_channel_write(), with no checks\nin place to ensure val is non-zero.","modified":"2026-04-16T04:35:33.322422988Z","published":"2024-11-09T10:14:42.414Z","related":["SUSE-SU-2024:4314-1","SUSE-SU-2024:4315-1","SUSE-SU-2024:4316-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4376-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50232.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0ac0beb4235a9a474f681280a3bd4e2a5bb66569"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f588fffc307a4bc2761aee6ff275bb4b433e451"},{"type":"WEB","url":"https://git.kernel.org/stable/c/efa353ae1b0541981bc96dbf2e586387d0392baa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f51343f346e6abde094548a7fb34472b0d4cae91"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50232.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50232"},{"type":"PACKAGE","url":"https://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":"7b8d045e497a04dd88546da51f34fa3b102778d2"},{"fixed":"4f588fffc307a4bc2761aee6ff275bb4b433e451"},{"fixed":"f51343f346e6abde094548a7fb34472b0d4cae91"},{"fixed":"3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95"},{"fixed":"0ac0beb4235a9a474f681280a3bd4e2a5bb66569"},{"fixed":"efa353ae1b0541981bc96dbf2e586387d0392baa"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50232.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}