Bug 2502442 (CVE-2026-63935)

Summary: CVE-2026-63935 kernel: iio: adc: nxp-sar-adc: fix division by zero in write_raw
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: rhel-process-autobot, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the Linux kernel's NXP SAR Analog-to-Digital Converter (ADC) module. A local user can trigger a division-by-zero error by providing a zero or negative value to the sampling_frequency sysfs attribute. This vulnerability can lead to a denial of service (DoS) due to the kernel crashing. Additionally, an unsigned integer underflow can occur, potentially causing unexpected system behavior.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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