iio: adc: ad4030: fix invalid oversampling_ratio validation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.567.2.107.3In 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.
From the CVE record · Linux
The Linux kernel's ad4030 ADC driver calculates a logarithm before validating the oversampling ratio. If zero or a negative value is passed to ad4030_set_avg_frame_len(), ilog2() produces an undefined result. The input does not specify whether this can be triggered over a network, requires authentication, or requires user interaction.
Engineers running Linux kernels that include the ad4030 ADC driver should check whether their kernel contains this fix; affected versions are not specified.