Bug 2502442 (CVE-2026-63935) - CVE-2026-63935 kernel: iio: adc: nxp-sar-adc: fix division by zero in write_raw
Summary: CVE-2026-63935 kernel: iio: adc: nxp-sar-adc: fix division by zero in write_raw
Keywords:
Status: NEW
Alias: CVE-2026-63935
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-19 16:08 UTC by OSIDB Bzimport
Modified: 2026-07-21 15:01 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-19 16:08:22 UTC
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.

Comment 1 Mauro Matteo Cascella 2026-07-21 14:55:50 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026071951-CVE-2026-63935-227a@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.