Skip to contentSkip to conversation

CVE-2026-63935: iio: adc: nxp-sar-adc: fix division by zero in write_raw

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

iio: adc: nxp-sar-adc: fix division by zero in write_raw

Add a validation check for the sampling frequency value before using it as a divisor. A user writing zero or a negative value to the sampling_frequency sysfs attribute triggers a division by zero in the kernel.

Also prevent unsigned integer underflow when the computed cycle count is smaller than NXP_SAR_ADC_CONV_TIME, which would wrap the u32 inpsamp to a huge value.

The Linux kernel CVE team has assigned CVE-2026-63935 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.0 with commit 4434072a893e4864519c167947083ff3e4cc2d95 and fixed in 7.0.12 with commit cb6ea15e7d3c7518f806975a06b7d4c0a26402ea
	Issue introduced in 7.0 with commit 4434072a893e4864519c167947083ff3e4cc2d95 and fixed in 7.1 with commit a9aba21a539c668a66b58eeb08ad3909e5a54c2a

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-63935

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/nxp-sar-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/cb6ea15e7d3c7518f806975a06b7d4c0a26402ea
	https://git.kernel.org/stable/c/a9aba21a539c668a66b58eeb08ad3909e5a54c2a