{"id":"CVE-2024-50232","aliases":["CVE-2024-50232"],"related":[],"kind":"vulnerability","state":"published","title":"iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iio: adc: ad7124: se corrige la división por cero en ad7124_set_channel_odr() En la función ad7124_write_raw(), el parámetro val puede ser potencialmente cero. Esto puede provocar una división por cero cuando se llama a DIV_ROUND_CLOSEST() dentro de ad7124_set_channel_odr(). La función ad7124_write_raw() se invoca a través de la secuencia: iio_write_channel_raw() -&gt; iio_write_channel_attribute() -&gt; iio_channel_write(), sin comprobaciones para garantizar que val no sea cero.","source":"nvd"}],"published":"2024-11-09T10:14:42.414Z","modified":"2026-06-17T08:03:56.197Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"type":"git","introduced":"7b8d045e497a04dd88546da51f34fa3b102778d2","fixed":"4f588fffc307a4bc2761aee6ff275bb4b433e451","status":"affected"},{"type":"git","introduced":"7b8d045e497a04dd88546da51f34fa3b102778d2","fixed":"f51343f346e6abde094548a7fb34472b0d4cae91","status":"affected"},{"type":"git","introduced":"7b8d045e497a04dd88546da51f34fa3b102778d2","fixed":"3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95","status":"affected"},{"type":"git","introduced":"7b8d045e497a04dd88546da51f34fa3b102778d2","fixed":"0ac0beb4235a9a474f681280a3bd4e2a5bb66569","status":"affected"},{"type":"git","introduced":"7b8d045e497a04dd88546da51f34fa3b102778d2","fixed":"efa353ae1b0541981bc96dbf2e586387d0392baa","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","status":"unaffected"},{"type":"semver","introduced":"5.15.171","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.116","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.60","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.7","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.13","fixed":"5.15.171"},{"status":"affected","introduced":"5.16","fixed":"6.1.116"},{"status":"affected","introduced":"6.2","fixed":"6.6.60"},{"status":"affected","introduced":"6.7","fixed":"6.11.7"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4f588fffc307a4bc2761aee6ff275bb4b433e451","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f51343f346e6abde094548a7fb34472b0d4cae91","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0ac0beb4235a9a474f681280a3bd4e2a5bb66569","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/efa353ae1b0541981bc96dbf2e586387d0392baa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T20:16:36.439Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50232","url":"https://www.cve.org/CVERecord?id=CVE-2024-50232","licence":"CVE Terms of Use","modified":"2026-05-11T20:47:56.340Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50232","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50232","licence":"Public domain","modified":"2026-06-17T08:03:56.197Z"}],"updatedAt":"2026-11-25T22:58:47.970Z","epss":{"score":0.00249,"percentile":0.17292,"date":"2026-12-02T12:00:21.000Z"}}