Skip to content
Heist/ feed
Back to feed
UnratedFix available

iio: adc: nxp-sar-adc: fix division by zero in write_raw

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
7.0.12
CVEs
CVE-2026-63935
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 16:46 UTC · Revision 1

Source evidence

iio: adc: nxp-sar-adc: fix division by zero in write_raw

core-osv · Original source

Published 19 Jul 2026, 14:55 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.

osv:CVE-2026-63935

Kernel

Fixed versions: 7.0.12

Complete source record
{
  "id": "556bb77a34dd037e0d14f607c24bef3b685e889fc1275e7de9475b36954fa663",
  "url": "https://osv.dev/vulnerability/CVE-2026-63935",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "iio: adc: nxp-sar-adc: fix division by zero in write_raw",
    "summary": "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.",
    "evidence": "osv:CVE-2026-63935",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.0.12",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-63935",
      "aliases": [
        "CVE-2026-63935"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4434072a893e4864519c167947083ff3e4cc2d95"
                },
                {
                  "fixed": "cb6ea15e7d3c7518f806975a06b7d4c0a26402ea"
                },
                {
                  "fixed": "a9aba21a539c668a66b58eeb08ad3909e5a54c2a"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63935.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "7.0.0"
                },
                {
                  "fixed": "7.0.12"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63935.json"
          }
        }
      ],
      "modified": "2026-11-01T02:30:35.350238110Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/a9aba21a539c668a66b58eeb08ad3909e5a54c2a",
        "https://git.kernel.org/stable/c/cb6ea15e7d3c7518f806975a06b7d4c0a26402ea",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63935.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-63935",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63935.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-63935",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 487366,
  "published_at": "2026-07-19T14:55:33.321+00:00"
}