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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-07-19T14:55:33.321Z
- Modified: 2026-10-30T14:28:20.067Z
- Weaknesses: CWE-369
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4434072a893e4864519c167947083ff3e4cc2d95 before cb6ea15e7d3c7518f806975a06b7d4c0a26402ea; from 4434072a893e4864519c167947083ff3e4cc2d95 before a9aba21a539c668a66b58eeb08ad3909e5a54c2a; 7.0 (not affected: before 7.0; from 7.0.12 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 7.0 before 7.0.12; 7.1

## References

- <https://git.kernel.org/stable/c/cb6ea15e7d3c7518f806975a06b7d4c0a26402ea> (patch)
- <https://git.kernel.org/stable/c/a9aba21a539c668a66b58eeb08ad3909e5a54c2a> (patch)

## Sources

- CVE List: [CVE-2026-63935](https://www.cve.org/CVERecord?id=CVE-2026-63935), CVE Terms of Use, modified 2026-07-19
- NVD: [CVE-2026-63935](https://nvd.nist.gov/vuln/detail/CVE-2026-63935), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-63935 · Whole record: https://cve.day/CVE-2026-63935.json · Rebuilt by cve.day 2026-11-25T22:59:28.842Z
