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.
Published: 2026-07-19
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The NXP SAR ADC driver in the Linux kernel exposes a sysfs attribute named sampling_frequency. Writing a zero, negative, or too small value causes the driver to perform a division by zero or an unsigned integer underflow, corrupting kernel state and potentially triggering a crash. The resulting denial of service can bring the entire system down, as the kernel panics. This is a classic division‑by‑zero weakness.

Affected Systems

Any system running a Linux kernel that ships the nxp‑sar‑adc driver and has not yet incorporated the upstream patch is affected. This includes all mainstream distributions, embedded systems, and custom kernels that contain the original driver code. No specific kernel releases are listed, so all builds lacking the fix are potentially vulnerable.

Risk and Exploitability

The CVSS score of 5.5 classifies the issue as moderate severity, while an EPSS score of <1% indicates a low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. The attack requires local write access to the sampling_frequency sysfs file, which is normally restricted to privileged users. Therefore, the risk is moderate; a trusted local attacker could trigger a crash, but remote exploitation is unlikely.

Generated by OpenCVE AI on August 4, 2026 at 06:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the nxp‑sar‑adc division‑by‑zero fix, such as the latest stable release from your distribution or the upstream kernel tree.
  • Limit write permissions on the sampling_frequency sysfs file, for example by setting its mode to 0600 or using udev rules to allow write access only for trusted users.
  • If you must write to the sampling_frequency attribute from custom code, add explicit bounds checking to ensure the value is positive and within an acceptable range before it is used as a divisor, mitigating the division‑by‑zero and unsigned integer underflow weaknesses (CWE‑369).

Generated by OpenCVE AI on August 4, 2026 at 06:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Sun, 26 Jul 2026 08:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190

Wed, 22 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Tue, 21 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190
CWE-369

Sun, 19 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title iio: adc: nxp-sar-adc: fix division by zero in write_raw
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-19T14:55:33.321Z

Reserved: 2026-07-19T07:54:57.022Z

Link: CVE-2026-63935

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-63935 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T06:45:03Z

Weaknesses