iio: adc: stm32-adc: fix possible division by zero in processed channel
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0e346b2cfa855d6e6990dbdb220983fbf2bb0b92 · < c5de6a6f855fdcf1e0ea549fb227a316db51c405| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: stm32-adc: fix possible division by zero in processed channel
In case the conversion has failed or returned zero, processing *val can lead to a division by zero. Need to check for errors, or converted value is zero, before processing the data. In case the converted value is zero, e.g. the Vrefint channel, this should be considered as invalid in all cases.
From the CVE record · Linux
The Linux kernel's stm32-adc driver can divide by zero when processing a channel after a conversion fails or returns zero. The input does not establish whether an attacker can trigger this condition or specify any access or user-interaction requirements.
Engineers running Linux kernels that use the stm32-adc driver should check their affected versions against the vendor advisory; no versions are specified here.