CVE-2026-98672: iio: adc: stm32-adc: fix possible division by zero in processed channel
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98672 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.16 with commit 0e346b2cfa855d6e6990dbdb220983fbf2bb0b92 and fixed in 6.12.113 with commit 30d27899cbba5b080954b5d3741bd535806c3101 Issue introduced in 5.16 with commit 0e346b2cfa855d6e6990dbdb220983fbf2bb0b92 and fixed in 6.18.56 with commit 6dd3bf785d0307d1cf8f4a97c2240b0af14bef50 Issue introduced in 5.16 with commit 0e346b2cfa855d6e6990dbdb220983fbf2bb0b92 and fixed in 7.2.10 with commit ab4e57adead252dd7f947baed6178f32ede88d38 Issue introduced in 5.16 with commit 0e346b2cfa855d6e6990dbdb220983fbf2bb0b92 and fixed in 7.3-rc6 with commit c5de6a6f855fdcf1e0ea549fb227a316db51c405
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-98672
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/stm32-adc.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/30d27899cbba5b080954b5d3741bd535806c3101 https://git.kernel.org/stable/c/6dd3bf785d0307d1cf8f4a97c2240b0af14bef50 https://git.kernel.org/stable/c/ab4e57adead252dd7f947baed6178f32ede88d38 https://git.kernel.org/stable/c/c5de6a6f855fdcf1e0ea549fb227a316db51c405