{"id":"CVE-2024-50232","state":"PUBLISHED","title":"iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()","description":"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() ->\niio_write_channel_attribute() -> iio_channel_write(), with no checks\nin place to ensure val is non-zero.","publishedAt":"2024-11-09T10:14:42.414Z","updatedAt":"2026-05-11T20:47:56.340Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7b8d045e497a04dd88546da51f34fa3b102778d2","status":"affected","lessThan":"4f588fffc307a4bc2761aee6ff275bb4b433e451","versionType":"git"},{"version":"7b8d045e497a04dd88546da51f34fa3b102778d2","status":"affected","lessThan":"f51343f346e6abde094548a7fb34472b0d4cae91","versionType":"git"},{"version":"7b8d045e497a04dd88546da51f34fa3b102778d2","status":"affected","lessThan":"3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95","versionType":"git"},{"version":"7b8d045e497a04dd88546da51f34fa3b102778d2","status":"affected","lessThan":"0ac0beb4235a9a474f681280a3bd4e2a5bb66569","versionType":"git"},{"version":"7b8d045e497a04dd88546da51f34fa3b102778d2","status":"affected","lessThan":"efa353ae1b0541981bc96dbf2e586387d0392baa","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/adc/ad7124.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.171","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.116","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.60","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.7","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/adc/ad7124.c"]}],"references":["https://git.kernel.org/stable/c/4f588fffc307a4bc2761aee6ff275bb4b433e451","https://git.kernel.org/stable/c/f51343f346e6abde094548a7fb34472b0d4cae91","https://git.kernel.org/stable/c/3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95","https://git.kernel.org/stable/c/0ac0beb4235a9a474f681280a3bd4e2a5bb66569","https://git.kernel.org/stable/c/efa353ae1b0541981bc96dbf2e586387d0392baa","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":["CWE-369"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50232.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50232","state":"PUBLISHED","datePublished":"2024-11-09T10:14:42.414Z","dateUpdated":"2026-05-11T20:47:56.340Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-10-21T19:36:19.975Z"},"containers":{"cna":{"title":"iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()","descriptions":[{"lang":"en","value":"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() ->\niio_write_channel_attribute() -> iio_channel_write(), with no checks\nin place to ensure val is non-zero."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7b8d045e497a04dd88546da51f34fa3b102778d2","status":"affected","lessThan":"4f588fffc307a4bc2761aee6ff275bb4b433e451","versionType":"git"},{"version":"7b8d045e497a04dd88546da51f34fa3b102778d2","status":"affected","lessThan":"f51343f346e6abde094548a7fb34472b0d4cae91","versionType":"git"},{"version":"7b8d045e497a04dd88546da51f34fa3b102778d2","status":"affected","lessThan":"3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95","versionType":"git"},{"version":"7b8d045e497a04dd88546da51f34fa3b102778d2","status":"affected","lessThan":"0ac0beb4235a9a474f681280a3bd4e2a5bb66569","versionType":"git"},{"version":"7b8d045e497a04dd88546da51f34fa3b102778d2","status":"affected","lessThan":"efa353ae1b0541981bc96dbf2e586387d0392baa","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/adc/ad7124.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.171","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.116","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.60","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.7","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/adc/ad7124.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4f588fffc307a4bc2761aee6ff275bb4b433e451"},{"url":"https://git.kernel.org/stable/c/f51343f346e6abde094548a7fb34472b0d4cae91"},{"url":"https://git.kernel.org/stable/c/3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95"},{"url":"https://git.kernel.org/stable/c/0ac0beb4235a9a474f681280a3bd4e2a5bb66569"},{"url":"https://git.kernel.org/stable/c/efa353ae1b0541981bc96dbf2e586387d0392baa"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:47:56.340Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.15.171"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.1.116"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.6.60"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.11.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.12"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-50232","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T20:16:36.439869Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-369","lang":"en","type":"CWE","description":"CWE-369 Divide By Zero"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T20:17:27.467Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:27:12.523Z"}}]}}}