Skip to content
Heist/ feed
Back to feed
HighFix available

iio: adc: ad4851: fix ad4858 chan pointer handling

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: iio: adc: ad4851: fix ad4858 chan pointer handling The pointer returned from ad4851_parse_channels_common() is incremented internally as each channel is populated. In ad4858_parse_channels(), the same pointer was further incremented while setting ext_scan_type fields for each channel. This resulted in indio_dev->channels being set to a pointer past the end of the allocated array, potentially causing memory corruption or undefined behavior. Fix this by iterating over the channels using an explicit index instead of incrementing the pointer. This preserves the original base pointer and ensures all channel metadata is set correctly.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.15.3
CVEs
CVE-2025-38133
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 01:52 UTC · Revision 1

Source evidence

iio: adc: ad4851: fix ad4858 chan pointer handling

core-osv · Original source

Published 3 Jul 2025, 08:35 UTC

In the Linux kernel, the following vulnerability has been resolved: iio: adc: ad4851: fix ad4858 chan pointer handling The pointer returned from ad4851_parse_channels_common() is incremented internally as each channel is populated. In ad4858_parse_channels(), the same pointer was further incremented while setting ext_scan_type fields for each channel. This resulted in indio_dev->channels being set to a pointer past the end of the allocated array, potentially causing memory corruption or undefined behavior. Fix this by iterating over the channels using an explicit index instead of incrementing the pointer. This preserves the original base pointer and ensures all channel metadata is set correctly.

osv:CVE-2025-38133

Kernel

Fixed versions: 6.15.3

Complete source record
{
  "id": "f3a765f6b8a3f30dbc1e9c649c53d51a97d11c33ad70cc69b9ce5de4ef939615",
  "url": "https://osv.dev/vulnerability/CVE-2025-38133",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "iio: adc: ad4851: fix ad4858 chan pointer handling",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: iio: adc: ad4851: fix ad4858 chan pointer handling The pointer returned from ad4851_parse_channels_common() is incremented internally as each channel is populated. In ad4858_parse_channels(), the same pointer was further incremented while setting ext_scan_type fields for each channel. This resulted in indio_dev->channels being set to a pointer past the end of the allocated array, potentially causing memory corruption or undefined behavior. Fix this by iterating over the channels using an explicit index instead of incrementing the pointer. This preserves the original base pointer and ensures all channel metadata is set correctly.",
    "evidence": "osv:CVE-2025-38133",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.15.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-38133",
      "aliases": [
        "CVE-2025-38133"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6250803fe2ec92be32a4df1c3a39c4a460d5bd58"
                },
                {
                  "fixed": "6c3b9e1167d072ce2d01cafec7866647cf8d3616"
                },
                {
                  "fixed": "499a8cee812588905cc940837e69918c1649a19e"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38133.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.15.0"
                },
                {
                  "fixed": "6.15.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38133.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.084811017Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/499a8cee812588905cc940837e69918c1649a19e",
        "https://git.kernel.org/stable/c/6c3b9e1167d072ce2d01cafec7866647cf8d3616",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38133.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38133",
        "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/2025/38xxx/CVE-2025-38133.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38133",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 514023,
  "published_at": "2025-07-03T08:35:36.802+00:00"
}