CVE-2026-98678: iio: adc: ad4030: fix invalid oversampling_ratio validation
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: ad4030: fix invalid oversampling_ratio validation
In ad4030_set_avg_frame_len(), the logarithm is calculated before input validation. Passing zero or negative values leads to an undefined result from ilog2().
Validate that the input is strictly positive prior to computing its logarithm.
The Linux kernel CVE team has assigned CVE-2026-98678 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 949abd1ca5a4342d9fb8c774035222e65dd1cfe4 and fixed in 6.18.56 with commit 6b0cc4e32599f59c994a60743f53fc72cb2979f4 Issue introduced in 6.15 with commit 949abd1ca5a4342d9fb8c774035222e65dd1cfe4 and fixed in 7.2.10 with commit 6ca6dcbaa68c5e6dc4df171a32c5822e1a4c66c1 Issue introduced in 6.15 with commit 949abd1ca5a4342d9fb8c774035222e65dd1cfe4 and fixed in 7.3-rc6 with commit d615210564205993e8f0e7ccb57cc2e66b7d5706
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98678
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/iio/adc/ad4030.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/6b0cc4e32599f59c994a60743f53fc72cb2979f4 https://git.kernel.org/stable/c/6ca6dcbaa68c5e6dc4df171a32c5822e1a4c66c1 https://git.kernel.org/stable/c/d615210564205993e8f0e7ccb57cc2e66b7d5706