iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.171, 6.1.116, 6.11.7, 6.6.60
- CVEs
- CVE-2024-50232
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:56 UTC · Revision 1
Source evidence
iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()
core-osv · Original sourcePublished 9 Nov 2024, 10:14 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.
osv:CVE-2024-50232
Kernel
Fixed versions: 5.15.171, 6.1.116, 6.6.60, 6.11.7
Complete source record
{
"id": "18251dab87e28a79402ba929ecc4bf0059ccfb4c41d381d239222b1fcdc07fe1",
"url": "https://osv.dev/vulnerability/CVE-2024-50232",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()",
"summary": "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.",
"evidence": "osv:CVE-2024-50232",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.171",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.116",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.60",
"evidence": "/affected/1/ranges"
},
{
"value": "6.11.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2024-50232",
"aliases": [
"CVE-2024-50232"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.13.0"
},
{
"fixed": "5.15.171"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.116"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.60"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.11.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50232.json"
}
}
],
"modified": "2026-10-28T02:30:30.015630532Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0ac0beb4235a9a474f681280a3bd4e2a5bb66569",
"https://git.kernel.org/stable/c/3dc0eda2cd5c653b162852ae5f0631bfe4ca5e95",
"https://git.kernel.org/stable/c/4f588fffc307a4bc2761aee6ff275bb4b433e451",
"https://git.kernel.org/stable/c/efa353ae1b0541981bc96dbf2e586387d0392baa",
"https://git.kernel.org/stable/c/f51343f346e6abde094548a7fb34472b0d4cae91",
"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50232.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-50232",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50232.json"
}
},
"related_cves": [
{
"value": "CVE-2024-50232",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496581,
"published_at": "2024-11-09T10:14:42.414+00:00"
}