{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-31768",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-31768"
  ],
  "published": "2026-05-01T14:17:31Z",
  "summary": "iio: adc: ti-adc161s626: use DMA-safe memory for spi_read()",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: adc: ti-adc161s626: use DMA-safe memory for spi_read()\n\nAdd a DMA-safe buffer and use it for spi_read() instead of a stack\nmemory. All SPI buffers must be DMA-safe.\n\nSince we only need up to 3 bytes, we just use a u8[] instead of __be16\nand __be32 and change the conversion functions appropriately.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.168",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-31768"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b3bb8faeca1a2ef7be95ee8a512b639f9ffce947"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fa64aab25aba47296aa8d12bb4c88ec3fecb2054"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/67b3a91bdc48220bfb67155ab528121b9c822782"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/014c6d27878d3883f7bb065610768fd021de1a96"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d2d031b0786ea66ab0577c9d2d71435068d32199"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/768461517a28d80fe81ea4d5d03a90cd184ea6ad"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T13:16:28Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The vulnerable `spi_read()` is reachable by a local user reading the world-readable IIO raw sysfs attribute for the ADC device. There is no network or adjacent protocol path to this hardware-specific SPI ADC driver.\nAC:L - On an affected system with this ADC behind a DMA-capable SPI controller, the attacker can repeatedly trigger the vulnerable read directly; no race or external condition beyond the deployment is required.\nPR:L - Triggering the direct IIO raw read requires only a basic local unprivileged user able to read sysfs device attributes. No real root/admin capability is required for that path.\nUI:N - The attacker can trigger the read themselves by accessing the sysfs attribute. No victim action is needed.\nS:U - The corruption occurs within the kernel context managing the SPI/IIO device. It does not cross a separate security authority such as a guest/host or IOMMU isolation boundary.\nC:H - The bug passes kernel stack memory as a DMA receive buffer, creating kernel stack/cacheline memory corruption on DMA-capable controllers. Kernel stack corruption is reasonably exploitable for broader kernel memory disclosure.\nI:H - DMA into non-DMA-safe stack memory can corrupt adjacent kernel stack state and potentially control data or control flow. Under the required high-severity tie-break, this supports high integrity impact.\nA:H - Kernel stack corruption from repeated ADC reads can cause oopses, panics, or hangs. Availability impact is therefore high."
    }
  }
}
