Bug 2324880 (CVE-2024-50232) - CVE-2024-50232 kernel: iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()
Summary: CVE-2024-50232 kernel: iio: adc: ad7124: fix division by zero in ad7124_set_c...
Keywords:
Status: NEW
Alias: CVE-2024-50232
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2325101
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-09 11:02 UTC by OSIDB Bzimport
Modified: 2024-11-21 17:32 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-11-09 11:02:57 UTC
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.

Comment 1 Avinash Hanwate 2024-11-11 05:50:00 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024110930-CVE-2024-50232-d425@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.