CVE-2024-50232

iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()

MEDIUM
5.5
CVSS Score
Published: November 9, 2024 at 10:14 AM UTC
Updated: June 17, 2026 at 08:03 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr() In the ad7124_write_raw() function, parameter val can potentially be zero. This may lead to a division by zero when DIV_ROUND_CLOSEST() is called within ad7124_set_channel_odr(). The ad7124_write_raw() function is invoked through the sequence: iio_write_channel_raw() -> iio_write_channel_attribute() -> iio_channel_write(), with no checks in place to ensure val is non-zero.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.13 ≤ v < 5.15.1715.13 ≤ v < 6.1.1165.13 ≤ v < 6.11.75.13 ≤ v < 6.125.13 ≤ v < 6.6.605.16 ≤ v < 6.1.1166.2 ≤ v < 6.6.606.7 ≤ v < 6.11.76.12 rc16.12 rc26.12 rc36.12 rc46.12 rc57b8d045e497a04dd88546da51f34fa3b102778d2
Vendor states this is fixed in 0ac0beb4235a9a474f681280a3bd4e2a5bb66569 (fixed)
Vendor states this is fixed in 3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95 (fixed)
Vendor states this is fixed in 4f588fffc307a4bc2761aee6ff275bb4b433e451 (fixed)
Vendor states this is fixed in efa353ae1b0541981bc96dbf2e586387d0392baa (fixed)
Vendor states this is fixed in f51343f346e6abde094548a7fb34472b0d4cae91 (fixed)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.15.171 (unaffected)
Vendor states this is fixed in 6.1.116 (unaffected)
Vendor states this is fixed in 6.11.7 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.6.60 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0ac0beb4235a9a474f681280a3bd4e2a5bb66569
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4f588fffc307a4bc2761aee6ff275bb4b433e451
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/efa353ae1b0541981bc96dbf2e586387d0392baa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f51343f346e6abde094548a7fb34472b0d4cae91
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-369

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card