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… (CVE-2026-63935)
A vulnerability in the Linux kernel's nxp-sar-adc driver allowed a division by zero error in the write_raw function. This occurred when a user wrote zero or a negative value to the sampling_frequency sysfs attribute. Additionally, an unsigned integer underflow could occur when the computed cycle count was smaller than a defined constant, causing a wraparound to a large value. The issue has been resolved by adding validation checks to prevent these conditions.
AI Analysis
Technical Summary
The Linux kernel's iio adc nxp-sar-adc driver had a vulnerability where the write_raw function did not validate the sampling_frequency input before using it as a divisor, leading to a division by zero if zero or negative values were provided. Furthermore, the driver did not prevent unsigned integer underflow when the computed cycle count was less than NXP_SAR_ADC_CONV_TIME, causing an unexpected wraparound of the u32 inpsamp variable. These issues have been fixed by adding appropriate validation checks.
Potential Impact
The vulnerability could cause a kernel crash or instability due to division by zero or integer underflow in the kernel driver when invalid sampling frequency values are written. This may lead to denial of service or system instability. No information about privilege escalation or code execution is provided.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to add validation checks preventing division by zero and integer underflow in the nxp-sar-adc driver. Users should update to the fixed kernel version once available. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
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… (CVE-2026-63935)
Description
A vulnerability in the Linux kernel's nxp-sar-adc driver allowed a division by zero error in the write_raw function. This occurred when a user wrote zero or a negative value to the sampling_frequency sysfs attribute. Additionally, an unsigned integer underflow could occur when the computed cycle count was smaller than a defined constant, causing a wraparound to a large value. The issue has been resolved by adding validation checks to prevent these conditions.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's iio adc nxp-sar-adc driver had a vulnerability where the write_raw function did not validate the sampling_frequency input before using it as a divisor, leading to a division by zero if zero or negative values were provided. Furthermore, the driver did not prevent unsigned integer underflow when the computed cycle count was less than NXP_SAR_ADC_CONV_TIME, causing an unexpected wraparound of the u32 inpsamp variable. These issues have been fixed by adding appropriate validation checks.
Potential Impact
The vulnerability could cause a kernel crash or instability due to division by zero or integer underflow in the kernel driver when invalid sampling frequency values are written. This may lead to denial of service or system instability. No information about privilege escalation or code execution is provided.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to add validation checks preventing division by zero and integer underflow in the nxp-sar-adc driver. Users should update to the fixed kernel version once available. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-ph67-42mq-jpw6
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63935"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27ab2a4a8d598912ef26
Added to database: 07/19/2026, 19:38:19 UTC
Last enriched: 07/19/2026, 20:07:02 UTC
Last updated: 07/20/2026, 17:26:47 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.